Populate Cell based on text in another cell

NealGowdy11

New Member
Joined
Sep 20, 2016
Messages
14
ABCD
1Project NameCountrySub RegionProject Manager
2AlphaUKNEHomer Simpson
3BravoRussiaEESnoop Dogg
4CharlieItalySEBrad Pitt
5DeltaFranceCEViktor Reznov

<tbody>
</tbody>


I need help...

I would like column D to say:
Homer Simpson whenever column C says NE

Snoop Dogg whenever column C says EE
Brad Pitt whenever column C says SE
Viktor Reznov whenever column C says CE

The conditional formatting would apply to A2:C500.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
7,006
Office Version
  1. 365
Platform
  1. MacOS
you could setup a lookup list or an nested IF

=IF(C2="NE", "Homer Simpson", if(C2="EE","Snoop Dogg" , IF( C2="SE", "Brad Pitt", IF( C2 = "CE", "Viktor Reznov", "not in list"))))

OR
create a list say in F1 and G1 column rows 1 to 4 - for the 4 codes
F has the codes Ne, EE etc
and G has the names

now you can put
index($G$1:$G$4,match(C2,
$F$1:$F$4,0))
 
Upvote 0

Forum statistics

Threads
1,191,123
Messages
5,984,776
Members
439,910
Latest member
Flyingjoblo

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
Top