VLOOKUP? Comparing multiple values in a column.

t2true

New Member
Joined
Dec 2, 2015
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
I have two lists of employee names - one with names and phone numbers; the other with names and locations.
The names in each list should match, but not necessarily. Some may have middle name or initial, or may have a hyphenated name.


I want to use the "locations" list to search the "numbers" list to add the phone number to the employee. I know I can do this with vlookup. However, there are several surnames that are duplicated:

[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]Allen[/TD]
[TD="width: 64"]Gabriel[/TD]
[/TR]
[TR]
[TD]Allen[/TD]
[TD]Maria Fe[/TD]
[/TR]
[TR]
[TD]Allen[/TD]
[TD]Matt[/TD]
[/TR]
[TR]
[TD]Alleyne[/TD]
[TD]Josetta[/TD]
[/TR]
[TR]
[TD]Alva[/TD]
[TD]Christian[/TD]
[/TR]
[TR]
[TD]Alvarado[/TD]
[TD]Harold[/TD]
[/TR]
[TR]
[TD]Anderson[/TD]
[TD]Jordan[/TD]
[/TR]
[TR]
[TD]Anderson[/TD]
[TD]Richard[/TD]
[/TR]
[TR]
[TD]Anderson[/TD]
[TD]Tura[/TD]
[/TR]
[TR]
[TD]Baker[/TD]
[TD]Brian[/TD]
[/TR]
[TR]
[TD]Baker[/TD]
[TD]Sally[/TD]
[/TR]
</tbody>[/TABLE]


How can I pull the correct number for an employee in this scenario? Can vlookup compare two columns in the same row and return a result?


Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Sounds like you need to use INDEX and MATCH. There is a lot of help on google.
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,996
Members
452,542
Latest member
Bricklin

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