If one cell contains X make other cell contain Y

fuzzyfuzzy

New Member
Joined
Feb 5, 2018
Messages
7
Hi,

Been struggling with this for a few days and given up. Hopefully you guys will help.

Basically, I want a column to recognise if another cell in the same row contains x then it will display Y

For instance, if B contains one of the cities, I want E to auto-populate the number for each


A B C D E
1 London 10
2 Manchester 12
3 Birmingham 6
4 Newcastle 11
5 Leeds 2
6 Sheffield 9
7 Norwich 6
8 Cardiff 5


I've tried all sorts and going round in circles, i'm sure it's fairly straight forward for those in the know but i'm totally lost with it now. Any help, very much appreciated.

Cheers
 
One of:

=IFNA(LOOKUP(9.99999999999999E+307,SEARCH($H$24:$H$34,$A2),$J$24:$J$34),"")

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH($H$24:$H$34,$A2),$J$24:$J$34),"")
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,226,730
Messages
6,192,711
Members
453,748
Latest member
akhtarf3

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