Look for value in a range and if it matches display cell contents

inosent

Board Regular
Joined
Mar 19, 2007
Messages
131
I have 24500 records and a list of 200 names.

I want to compare the name in one of the 24500 records and look for it within the range of 200 names. If there is a match, then show the cell info from the desired cell

Example

Range of names E1:E3:

Bob Smith
Dave Jones
Barry White

ABCD
1Bob Smithgreen4if(A1 is found in E1:E3 then show B1, else leave blank)
2Jack Morganblue2if(A2 is found in E1:E3 then show B2, else leave blank)
3Barry Whiteorange1if(A3 is found in E1:E3 then show B3, else leave blank)


The result would be:

D1 = green
D2 =
D1 = orange
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Book1
ABCDE
1Bob Smithgreen4greenBob Smith
2Jack Morganblue2 Dave Jones
3Barry Whiteorange1orangeBarry White
Sheet1
Cell Formulas
RangeFormula
D1:D3D1=IF(ISNA(MATCH($A1,$E$1:$E$3,0)),"",$B1)
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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