Vlookup two columns and get value from third Column

sharealong

New Member
Joined
Apr 28, 2011
Messages
1
Hello Guru's,

I have been breaking my head to get the logic of Vlookup from two columns and get a value from third column.

Hope to find a quick solution here.

Question:

I have Last Name, First Name, SSN on Sheet 1, in coliumns A-C respectively.
I have only Last Name, First Name on Sheet 2, in Column A & B.
I need to do a Vlookup and get SSN from Sheet 1 to Sheet 2.

Issues:
Sheet 1 Data runs to 4,540 rows
Sheet 2 Data is 523 rows.
There are around 30 First Names which are same and around 70 Last Names which are same. with this if I do a Vlookup based on only one column, either Last Name or First Name, the formula is returning the first SSN it found for all the remaining Last Names, and it's the same with First Names.

Requirement:
I am looking at using a formula to check the Last Name, First Name and return the SSN.

Sheet 1
Last Name|First Name|SSN |
Joe |Todd |xxx-xx-xxxx|
Mike |Todd |xxx-xx-xxxx|
Mike |Wellens |xxx-xx-xxxx|
Joe |Hansen |xxx-xx-xxxx|

Sheet 2
Last Name|First Name|SSN |
Joe |Todd | |
Mike |Todd | |
Mike |Wellens | |
Joe |Hansen | |

Hope the description of the example is clear.

Thanks is advance, experts.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
On sheet 1 create a 'helper' column with the formula (in row 1):
= A1 & B1 (insert a column between the first name and the SSN)

On sheet 2 use the formula
= VLOOKUP(A3 & B3,Sheet1!$C$1:$D$23,2,FALSE) - and adjust the lookup range (ie C$1:$D$23) accordingly.
 
Upvote 0
Hello Guru's,

I have been breaking my head to get the logic of Vlookup from two columns and get a value from third column.

Hope to find a quick solution here.

Question:

I have Last Name, First Name, SSN on Sheet 1, in coliumns A-C respectively.
I have only Last Name, First Name on Sheet 2, in Column A & B.
I need to do a Vlookup and get SSN from Sheet 1 to Sheet 2.

Issues:
Sheet 1 Data runs to 4,540 rows
Sheet 2 Data is 523 rows.
There are around 30 First Names which are same and around 70 Last Names which are same. with this if I do a Vlookup based on only one column, either Last Name or First Name, the formula is returning the first SSN it found for all the remaining Last Names, and it's the same with First Names.

Requirement:
I am looking at using a formula to check the Last Name, First Name and return the SSN.

Sheet 1
Last Name|First Name|SSN |
Joe |Todd |xxx-xx-xxxx|
Mike |Todd |xxx-xx-xxxx|
Mike |Wellens |xxx-xx-xxxx|
Joe |Hansen |xxx-xx-xxxx|

Sheet 2
Last Name|First Name|SSN |
Joe |Todd | |
Mike |Todd | |
Mike |Wellens | |
Joe |Hansen | |

Hope the description of the example is clear.

Thanks is advance, experts.
Try this...

Book1
ABC
1Last NameFirst NameSSN
2JoeTodd100
3MikeTodd200
4MikeWellens300
5JoeHansen400
Sheet1


Book1
ABC
1Last NameFirst NameSSN
2JoeTodd_
3MikeTodd_
4MikeWellens_
5JoeHansen_
Sheet2

Enter this array formula** in C2:

=INDEX(Sheet1!C$2:C$5,MATCH(1,IF(Sheet1!A$2:A$5=A2,IF(Sheet1!B$2:B$5=B2,1)),0))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

Copy down as needed.
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,767
Members
452,940
Latest member
rootytrip

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