Help with VLOOKUP or Contains Formula

tbruce

Board Regular
Joined
Dec 9, 2013
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm working on a VLOOKUP formula but I'm falling a little short on results. What I'm trying to do is to see if sheet 2's Full Name column is contained (either first or last name) in the Last Name column in Sheet 1. As you can see either the first or last name (or any combo) could appear on Sheet 2 so I need to do a contains vs. an exact match...

If there is a match to either the first or last name from Sheet 2 column B to Sheet 1 Column A, I then need to populate what name matched in Sheet 1 Column E, the full name from Sheet 2 column b, and also the phone number from Sheet 2 in column A

Hope that makes sense - would appreciate any help...

Sheet 1

ABCDEFG
1Last nameFirst NameAgeCityMatched NameFull Name MatchPhone Number
2DoeJohn25Dallas
3SmithDon45Fort Worth
4BanksJames35Plano

<tbody>
</tbody>

Sheet 2
AB
1Phone NumberFull Name
2123-123-1234Don Smith
3555-555-1212Banks James
4765-123-5432J Doe

<tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
This is gonna be a bit hit and miss.

Your Sheet 2 Full name column:

1) Contains names with first name last name in no specific order (This shouldnt be much of a problem, you could search for the Full name within a concatenated (First name&Last name&First Name) then the order wouldnt matter.
2) You havent even got a name row 4 just a letter J. So is J Doe the same as John Doe ? It's impossible to tell.
3) Depending how much data you have could there be more than one, say, John Smith ? How will you know whcih has the correct telephone number?
 
Upvote 0

Forum statistics

Threads
1,215,503
Messages
6,125,175
Members
449,212
Latest member
kenmaldonado

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