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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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