Hi!
First of all: great forum. Had found so much nice posts here. But now I got a problem I can´t find a solution to.
I got two sheets:
Sheet1
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Panels[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Downlight[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[/TR]
</tbody>[/TABLE]
What I want to achieve is this:
I got a supplier for an online shop. He got about 1000 products. This products are changing frequently so i need to update them every week. I got my own categories for the products so every time I update the products I need to know which products are new and which products are old.
I need to compare the IDs in Sheet1 and Sheet2 (there is another sort-order, so I need to compare the whole column) and if e.g. the product with the ID xt-12345 is present in both sheets, the matching values of columns cat1, cat2, cat3 should be copied from sheet1 to sheet2. So sheet two looks like this:
Sheet2
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Panels[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Downight[/TD]
[/TR]
</tbody>[/TABLE]
Another important thing: The macro should highlight the products in sheet2, which are present in sheet2 but not in sheet1.
Well, I know this is kind of complicated, but I hope anyone here could point me in the right direction to solve this.
Thanks in advance!
Cheers,
micrdy
First of all: great forum. Had found so much nice posts here. But now I got a problem I can´t find a solution to.
I got two sheets:
Sheet1
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Panels[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Downlight[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[/TR]
</tbody>[/TABLE]
What I want to achieve is this:
I got a supplier for an online shop. He got about 1000 products. This products are changing frequently so i need to update them every week. I got my own categories for the products so every time I update the products I need to know which products are new and which products are old.
I need to compare the IDs in Sheet1 and Sheet2 (there is another sort-order, so I need to compare the whole column) and if e.g. the product with the ID xt-12345 is present in both sheets, the matching values of columns cat1, cat2, cat3 should be copied from sheet1 to sheet2. So sheet two looks like this:
Sheet2
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Cat1[/TD]
[TD]Cat2[/TD]
[TD]Cat3[/TD]
[/TR]
[TR]
[TD]xt-12345[/TD]
[TD]Product 1[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Panels[/TD]
[/TR]
[TR]
[TD]xt-54321[/TD]
[TD]Product 2[/TD]
[TD]LED[/TD]
[TD]Lights[/TD]
[TD]Downight[/TD]
[/TR]
</tbody>[/TABLE]
Another important thing: The macro should highlight the products in sheet2, which are present in sheet2 but not in sheet1.
Well, I know this is kind of complicated, but I hope anyone here could point me in the right direction to solve this.
Thanks in advance!
Cheers,
micrdy