Hi All,
I'm looking for any method to automatically cross reference two tables in order to populate matches from the 2nd table. While normally Vlookup accomplishes this task with ease, it cannot in this case for three reasons:
1) There are duplicates in table 1 that I don't want in table 3
2) There are duplicates in table 2 that I DO want in table 3
3) Autofilling creates blank spaces in table 3, which I do not want
Here is 2 example tables and the results I would like in table 3 (formulas for G2:I5):
[TABLE="width: 652"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Table 1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Table 2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Matches (desired)
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Frank
[/TD]
[TD][/TD]
[TD]Robert
[/TD]
[TD]May
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]Frank
[/TD]
[TD]June
[/TD]
[TD="align: right"]5
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Frank
[/TD]
[TD][/TD]
[TD]Sam
[/TD]
[TD]April
[/TD]
[TD]7
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]July
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Brett
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]July
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]September
[/TD]
[TD="align: right"]9
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Edney
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]September
[/TD]
[TD]9
[/TD]
[TD][/TD]
[TD]Chad
[/TD]
[TD]February
[/TD]
[TD="align: right"]11
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Dave
[/TD]
[TD][/TD]
[TD]Frank
[/TD]
[TD]June
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]Chad
[/TD]
[TD][/TD]
[TD]Ted
[/TD]
[TD]May
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Paul
[/TD]
[TD]August
[/TD]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Chad
[/TD]
[TD]February
[/TD]
[TD]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Ned
[/TD]
[TD]December
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have already spent over 6 hours (pathetic- I know) trying to figure this out using array formulas and VBA loops to no avail. Any advice would be greatly, greatly appreciated. Thanks!
I'm looking for any method to automatically cross reference two tables in order to populate matches from the 2nd table. While normally Vlookup accomplishes this task with ease, it cannot in this case for three reasons:
1) There are duplicates in table 1 that I don't want in table 3
2) There are duplicates in table 2 that I DO want in table 3
3) Autofilling creates blank spaces in table 3, which I do not want
Here is 2 example tables and the results I would like in table 3 (formulas for G2:I5):
[TABLE="width: 652"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Table 1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Table 2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Matches (desired)
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Frank
[/TD]
[TD][/TD]
[TD]Robert
[/TD]
[TD]May
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]Frank
[/TD]
[TD]June
[/TD]
[TD="align: right"]5
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Frank
[/TD]
[TD][/TD]
[TD]Sam
[/TD]
[TD]April
[/TD]
[TD]7
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]July
[/TD]
[TD="align: right"]4
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Brett
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]July
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]September
[/TD]
[TD="align: right"]9
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Edney
[/TD]
[TD][/TD]
[TD]Brett
[/TD]
[TD]September
[/TD]
[TD]9
[/TD]
[TD][/TD]
[TD]Chad
[/TD]
[TD]February
[/TD]
[TD="align: right"]11
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Dave
[/TD]
[TD][/TD]
[TD]Frank
[/TD]
[TD]June
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]Chad
[/TD]
[TD][/TD]
[TD]Ted
[/TD]
[TD]May
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Paul
[/TD]
[TD]August
[/TD]
[TD]8
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Chad
[/TD]
[TD]February
[/TD]
[TD]11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Ned
[/TD]
[TD]December
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have already spent over 6 hours (pathetic- I know) trying to figure this out using array formulas and VBA loops to no avail. Any advice would be greatly, greatly appreciated. Thanks!