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:

AllenGabriel
AllenMaria Fe
AllenMatt
AlleyneJosetta
AlvaChristian
AlvaradoHarold
AndersonJordan
AndersonRichard
AndersonTura
BakerBrian
BakerSally

<tbody>
</tbody>


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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Sounds like you need to use INDEX and MATCH. There is a lot of help on google.
 
Upvote 0

Forum statistics

Threads
1,216,188
Messages
6,129,397
Members
449,508
Latest member
futureskillsacademy

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