Vlookup match two columns side-by-side with two columns side-by-side

Joined
Apr 2, 2013
Messages
4
I am not well-versed in excel formulas and am self-taught so, I have a hard time following some of the responses posted on here. I have Excel Version 2010.

I need a vlookup that will match two cells side-by-side against two other cells side-by-side. There are thousands of rows in both sheets, same file. I know the formula for a tradition vlookup but, in this case I need to match 2 for 2 and need help.

I can not combine the values with the concantenate function because the date cells will not format to match no matter what I do since they originated from access.

Please help me 'in lamens terms' with a formula that would do the following:

vlookup where lookup_value = '2 columns in table 1' and table_array = '2 columns in table 2', and col_index_num = 2 'from table 2'

Table 1<o:p></o:p>

5 Digit ID<o:p></o:p>
Date<o:p></o:p>
15001<o:p></o:p>
5/8/12<o:p></o:p>
15204<o:p></o:p>
2/5/12<o:p></o:p>
15204<o:p></o:p>
5/4/12<o:p></o:p>
15204<o:p></o:p>
6/7/12<o:p></o:p>
16000<o:p></o:p>
1/4/12<o:p></o:p>
16005<o:p></o:p>
5/7/12<o:p></o:p>
17007<o:p></o:p>
1/31/12<o:p></o:p>

<TBODY>
</TBODY>



Table 2<o:p></o:p>

5 Digit ID<o:p></o:p>
Date<o:p></o:p>
15154<o:p></o:p>
5/1/12<o:p></o:p>
15204<o:p></o:p>
2/5/12<o:p></o:p>
15204<o:p></o:p>
5/4/12<o:p></o:p>
15204<o:p></o:p>
7/4/12<o:p></o:p>
16044<o:p></o:p>
1/1/12<o:p></o:p>
16555<o:p></o:p>
1/4/12<o:p></o:p>
17007<o:p></o:p>
11/31/12<o:p></o:p>

<TBODY>
</TBODY>
<o:p></o:p>
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Here are the results I am looking for:

Table 1
5 Digit IDDateResults
150015/8/12
152042/5/122/5/12
152045/4/125/4/12
152046/7/12
160001/4/12
160055/7/12
170071/31/121/31/12

<TBODY>
</TBODY>
 
Upvote 0
Table 1 is located in A1:B8, including the headers.

Table 2 is located in E1:F8, including the headers.

C2, control+shift+enter, not just enter:

=IF(ISNUMBER(MATCH(1,IF($E$2:$E$8=A2,IF($F$2:$F$8=B2,1)),0)),B2,"")
 
Last edited:
Upvote 0
Sheet1

ABCD
1Table 1
25 Digit IDDate
31500105/08/2012
41520402/05/2012
51520405/04/2012
61520406/07/2012
71600001/04/2012
81600505/07/2012
9170071/31/12
10
11
12
13Table 2
145 Digit IDDate
151515405/01/2012
161520402/05/2012 02/05/2012
171520405/04/2012 05/04/2012
181520407/04/2012
191604401/01/2012
201655501/04/2012
21170071/31/12 1/31/12

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 102px;"><col style="width: 64px;"><col style="width: 75px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D15=IF(A15&B15=A3&B3,B15,"")
D16=IF(A16&B16=A4&B4,B16,"")
D17=IF(A17&B17=A5&B5,B17,"")
D18=IF(A18&B18=A6&B6,B18,"")
D19=IF(A19&B19=A7&B7,B19,"")
D20=IF(A20&B20=A8&B8,B20,"")
D21=IF(A21&B21=A9&B9,B21,"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Thank you, Aladin. I think this formula would've worked however, since I am not able to format B2 and F2 the same it may be why this is not working? B2 is formatted as 05/08/12 and F2 if formatted as 5/8/12. No matter what I do, I can not make the two consistent. I have tried converting text to columns for both, I have tried formatting cells by custom, date, text...nothing is working.
 
Upvote 0
Thank you, Aladin. I think this formula would've worked however, since I am not able to format B2 and F2 the same it may be why this is not working? B2 is formatted as 05/08/12 and F2 if formatted as 5/8/12. No matter what I do, I can not make the two consistent. I have tried converting text to columns for both, I have tried formatting cells by custom, date, text...nothing is working.

Control+shift+enter, not just enter:

=IF(ISNUMBER(MATCH(1,IF($E$2:$E$8=A2,IF($F$2:$F$8+0=B2+0,1)),0)),B2+0,"")

Does this help?
 
Upvote 0
Control+shift+enter, not just enter:

=IF(ISNUMBER(MATCH(1,IF($E$2:$E$8=A2,IF($F$2:$F$8+0=B2+0,1)),0)),B2+0,"")

Does this help?

Thank you, but I did Control+Shift+Enter and have the { brackets surrounding the formula as a result. It is still not working though. I thought that a requirement for vlookups to work successfully were that the comparing cells be of the same format?
 
Upvote 0
Thank you, but I did Control+Shift+Enter and have the { brackets surrounding the formula as a result. It is still not working though. I thought that a requirement for vlookups to work successfully were that the comparing cells be of the same format?

We need to carry out some diagnostics...

Would you post the results that obtain with the following formulas:

=B2&""

=F2&""

=B2+0

=F2+0
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,172
Members
448,870
Latest member
max_pedreira

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