How2 Extract Values from Two Related Tables that don't have a match

thomdeluca

New Member
Joined
Sep 27, 2008
Messages
10
PowerPivot newbie question.

What steps can I take to build/obtain query results that show values from Table "A" that don't have a match for values in Table "B".

Assume both tables share a common field, "Product ID".

Table "A" contains data from one source, Table "B" contains text fields that I wish to append to Table "A" values.

Table "A" updates with new items on occasion.

Purpose of query is to return list of items from Table "A" that don't currently have a corresponding "Product ID" in Table "B"; want query results to deliver a table of all those items from Table "A" so that I can then append them to Table "B"

Many Thanks!
- Tom
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
One option is to create a relationship on Product ID and then add a calculated column like this.Make your table and slice it based on this calculated column to get your list of items from Table "A" that don't currently have a corresponding "Product ID" in Table "B";

=IF( RELATED(Sheet2[Product ID]) <> Sheet1[Product ID], "Add","Do not add")
 
Upvote 0
I like kazlik's solution. I will add though... this problem feels better suited to Power Query.
 
Upvote 0

Forum statistics

Threads
1,224,074
Messages
6,176,223
Members
452,715
Latest member
DebbieCox

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