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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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