Find Missing Values

mather7

New Member
Joined
Jun 30, 2016
Messages
7
What i am trying to do is we have multiple accounts and products, would like to find the missing products for each account. I saw solutions for matching one set but not multiples

Account Product
1 Apple
1 Orange
1 Tomato
2 Orange
2 Spinach
2 Garlic

All Avail products
Apple
Orange
Tomato
Spinach
Garlic

Would like to see results of the difference between products and all available products

Account Product Missing
1 spinach
1 garlic
2 apple
2 tomato

and so on for other accounts.
 
Id try VBA,
I'm wondering if that means VBA is not your first preference? If that is the case, here is another possible formula approach but using the fact that you have tables.
Like stunnrock though, I am also assuming that there is, or could be, a list of all available Account Numbers as I'm thinking that it might be possible that no products at all are listed in the ACT table for 1 or more accounts.
Anyway, see if this is any use.

Here is my sheet with the table of available products (table ID) in column B, table of available account numbers (table ACCOUNTS) in column F & a helper cell in D1 to count the available products.

Excel Workbook
ABCDEFG
1Available Products5Available Accounts
2Apple1
3Orange2
4Tomato3
5Spinach
6Garlic
ID


This sheet contains the table of used accounts and products (table ACT)

Excel Workbook
ABCD
1ProductAccount
2Apple1
3Orange1
4Tomato1
5Orange2
6Spinach2
7Garlic2
ACT



Finally the results sheet with table RTN
The formulas shown should be copied down as far as you might ever need.
Note that this table has an example demonstrating my earlier point about an account (3) that does not appear at all in table ACT.

Excel Workbook
ABCD
1AccountProduct Missing
21Spinach
31Garlic
42Apple
52Tomato
63Apple
73Orange
83Tomato
93Spinach
103Garlic
11
12
RTN
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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