Populate cell with a value if another cell has a certain value

B

B2ORL

All, good morning. i have a issue, i need to populate cell E4 with a value
CX/025966 when cell F4 has a text Bond Street.

Is there a simple way of doin this?
 
T

trip_to_tokyo

EXCEL 2007

Try:-

=IF((F4="Bond Street"),"CX/025966","")

If my comments have helped please hit Yes.

Thanks.
 
B

B2ORL

Thanks, but i would like to complicate this further.

I have cell E4 with this formula: =IF((G4="Neasden"),"CX/025966","")
also i have G4 with this: =IF((J4="N"),"Neasden","")
but in Cell J4 i have a choice created from a table N and B, where N is for
Neasden and B is for Bond Street.

Bond Street has a code (like Neasden) CX/026024. So basically what i wanted
is to select N or B in Column J that will output the codes for Bond Street or
Neasden.

Help to solve this...Thanks
 
J

Jacob Skaria

In cell G4
=IF(J4="N","Neasden",IF(J4="B","Bond Street","")

In cell E4
=IF(J4="N","CX/025966",IF(J4="B","CX/026024","")

Or create a table in Sheet2 as below
ColA ColB
N CX/025966
B CX/026024

and use the formula in E4
=VLOOKUP(J4,Sheet2!A1:B2,2,0)
 
B

B2ORL

Works a dream, thanks guys for the help.

Jacob Skaria said:
In cell G4
=IF(J4="N","Neasden",IF(J4="B","Bond Street","")

In cell E4
=IF(J4="N","CX/025966",IF(J4="B","CX/026024","")

Or create a table in Sheet2 as below
ColA ColB
N CX/025966
B CX/026024

and use the formula in E4
=VLOOKUP(J4,Sheet2!A1:B2,2,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top