Vlookup Multiple

taylo5dc

New Member
Joined
Jul 2, 2012
Messages
1
I have a very large database of numbers that have two IDs. I pulled the coding system (Table 2) that has ID1 and ID2 and the universal ID. I would like to be able to look up the first two IDs (table 1) and have the result be the universal ID. I believe the best way to do this would be Vlookup, but I have been unsucessful. Thank you in advance for your help.
Table 1Table 2
ID1ID2ID1ID2universal ID
50103040117
5010190
4070200

<TBODY>
</TBODY>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Usethe SUMSMIFS function

=SUMIFS(F2:F4,D2:D4,A2,E2:E4,B2) where F2:F4 = Universal ID Range, D2:D4 = ID1 Range (Table2), A2 = ID1(Table1), E2:E4 = ID2 Range(Table2) & B2 = ID2(Table1)
 
Upvote 0
Excel 2010
ABCDEFGHI
1Table 1 Table 2
2ID1 ID2 ID1 ID2 universal ID
350101903040117
45010190
54070200

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
D3=IF(ISNA(MATCH(TRUE,INDEX($G$3:$G$5&$H$3:$H$5=B3&C3,),0)),"",INDEX($I$3:$I$5,MATCH(TRUE,INDEX($G$3:$G$5&$H$3:$H$5=B3&C3,),0)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
I have a very large database of numbers that have two IDs. I pulled the coding system (Table 2) that has ID1 and ID2 and the universal ID. I would like to be able to look up the first two IDs (table 1) and have the result be the universal ID. I believe the best way to do this would be Vlookup, but I have been unsucessful. Thank you in advance for your help.
Table 1Table 2
ID1ID2ID1ID2universal ID
50103040117
5010190
4070200

<tbody>
</tbody>

Control+shift+enter, not just enter:

=INDEX(UniversalIDrange,MATCH(ID1,IF(ID2range=ID2,ID1range),0))
 
Upvote 0
Hi Aladin,
Is this faster that my non array approach?

Hi Robert

You mean of course non-CSE for indexifying an array result still means an array-processing formula. And I don't believe such is any faster than its CSE-counterpart. Maybe even the reverse is true.
 
Upvote 0
Hi Robert

You mean of course non-CSE for indexifying an array result still means an array-processing formula. And I don't believe such is any faster than its CSE-counterpart. Maybe even the reverse is true.
As always thank you for explanation and yes I meant CSE formula or in fact my "non CSE approach":cool:
 
Upvote 0

Forum statistics

Threads
1,206,949
Messages
6,075,811
Members
446,158
Latest member
octagonalowl

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