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.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,651
Messages
5,854,956
Members
431,689
Latest member
jacker01

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