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 currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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