Joining two tables with two field validators

jonealmass

New Member
Joined
Apr 25, 2017
Messages
7
I have two tables I want to join.

Table 1:
Agent ID Agency
2 100
2 101


Table 2:
Agent ID Agency
2 100
2 101
2 102

Table 2 has other field I need but only when Agent ID & Agency from Table 1 equal Agent ID & Agency in Table 2.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the Board!

In your query, you can join tables on multiple fields. In the Query Builder, just click and drag from the Agent ID field in Table 1 to the Agent ID field in Table 2. Then do the same for the Agency field.
 
Upvote 0
I guess I didn't explain right. I have a list of Agent ID's in column A that repeat if they sell in a different firm in Column B. Sales are in separate table. The sales also have Agent IDs & Firm. I need the combination of Agent and firm to bring back sales. But, an agent can have more than what is in the first table but only want the combination. How do I do that?
 
Upvote 0
Can you show some simple data samples of the data in each table, and what you are looking for in your expected results?
I think that will clarify things a bit.
 
Upvote 0

Forum statistics

Threads
1,225,619
Messages
6,186,043
Members
453,334
Latest member
pmarch

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