Copying data depending on conditions from different tables

pbarvind

New Member
Joined
Aug 18, 2011
Messages
28
Hi Everyone,

I'm trying to solve a problem that I'm facing while trying conditional copy

I have three tables

Table 1 - List of Products
<pre>
A
Shoe Horn
Socks
Shoe Lace
Lint Remover

Table 2 - List of what customer owns
A
Shoes
Shirt
Vest

Table 3 - Dependencies (which the customer should own in order to purchase a component)
A B
Shoe Horn - Shoes
Shoe Lace - Shoes
Lint Remover - Jacket
</pre>
What I need to do is scan table 2 against column B of table 3. Only if the customer does not own the corresponding dependency, it is suggested in column B of table 2.

For instance, ideally, I'd like table 1 to look like this

Table 1
<pre>
A B
Shoe Horn (nothing here because the customer owns shoes)
Socks (nothing here because there are no dependencies)
Shoe Lace (nothing here because the customer owns shoes)
Lint Remover Jacket (recommended because it is a dependency and the customer doesn't own it)
</pre>

I've been trying a few methods using intersect and ranges but haven't been successful so far. Any help would be greatly appreciated!

Thanks you :)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hey,

I've also tried using combinations of =FIND and match index but it hasn't worked so far. Is there a way to achieve this in VBA?
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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