Easy Table join issue

michaelbrux

New Member
Joined
Oct 16, 2012
Messages
5
I have two tables and I can't seen to figure out how to join the tables and get the information I want. I have a master list of all users with their computer names and list of users who need software added. I need to make a 3rd table with all the users who need software added and include their computer name.


[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Computer Name[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Alpha[/TD]
[/TR]
[TR]
[TD]Frank[/TD]
[TD]Big[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]Photon[/TD]
[/TR]
[TR]
[TD]Alice[/TD]
[TD]Jumbo[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Add Software[/TD]
[/TR]
[TR]
[TD]Frank[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

What I would do is link the two table using User as a key then add a new column in the first table with the computer names and use Related() to add the add software. The result if the user could be found in second table Yes would show in the new column otherwise Blank.

Thanks
 
Upvote 0
No need to create a new table, try this query.

SELECT Table1.[User], Table1.[Computer Name]
FROM Table1 LEFT JOIN Table2 ON Table1.[User] =Table2.[User]
WHERE Table2.[Add Software] = 'Yes'
 
Upvote 0
No need to create a new table, try this query.

SELECT Table1.[User], Table1.[Computer Name]
FROM Table1 LEFT JOIN Table2 ON Table1.[User] =Table2.[User]
WHERE Table2.[Add Software] = 'Yes'

Ok Where do I enter this query? are the table names the excel tables or the power pivot tables?
 
Upvote 0
Oops, didn't notice this was the PowerPivot forum.

What I posted is SQL for a query in Access (or any other database) so it's probably not relevant.

Apologies.:)
 
Upvote 0
Creating a third table is not necessarily required.

I support Fahadfx's answer, although you might even consider not using the RELATED function and just create a relationship, and use a pivot table to get the desired output.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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