Cross referencing cells

Hurler

New Member
Joined
Jan 16, 2014
Messages
2
Should I use the 'IF' or 'LOOKUP' functions to fill a cell based on the content of another?
If C2 contains 'Cork' I need D2 to read 'Munster'. Indeed I will need D2 to read 'Munster' for a number of different C2 values.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board!!

in D2 type in the formula bar =IF(C2="Cork","Munster","NotMunster")
 
Upvote 0
Welcome to the board..

Indeed I will need D2 to read 'Munster' for a number of different C2 values.

Put the 'number of diferent C2 values' in a range, say E2:E10

Then try
=IF(ISNUMBER(MATCH(C2,$E$2:$E$10,0)),"Munster","")
 
Upvote 0
Welcome to the board..



Put the 'number of diferent C2 values' in a range, say E2:E10

Then try
=IF(ISNUMBER(MATCH(C2,$E$2:$E$10,0)),"Munster","")


Thank you Janmo1. That worked and I managed to combine my different requirements into a single formula. Thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,194
Members
449,214
Latest member
mr_ordinaryboy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top