simple lookup

bmuddy2

Active Member
Joined
Jun 22, 2004
Messages
398
Good morning all, If your in Michigan I hope your enjoying the snow.
here is a simple formula question. I tried to look through the posts but most are more complicated and too much for me to make work.

cell U6 has a name, formula in cell V6

AP6:AP105 contains a list of names,AO6:AO105 contains last names.

There are some blank cells and some cell contain numbers. What formula would I put into V6 so it will look at U6 and find a match in AP6:AP105, then find whats in the cell to the left of it in AO6:AO105 ? and if U6 is empty then "" ?

I do not believe there are duplicates but it is possible.
 

Some videos you may like

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

MarcelBeug

Well-known Member
Joined
Apr 25, 2014
Messages
1,811
Try
Code:
=IF(U6="","",INDEX($AO$6:$AO$105,MATCH(U6,$AP$6:$AP$105,0)))

In case of duplicates this will find the first match, If you want all matches (e.g. in V6, V7 etcetera), it will be more complicated
 

MarcelBeug

Well-known Member
Joined
Apr 25, 2014
Messages
1,811
You're welcome. :cool: By the way: hardly any snow in The Netherlands this winter.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,569
Messages
5,596,915
Members
414,110
Latest member
docops

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