code compare values of columns into two sheets and result in another sheet

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,494
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hi, everyone i would code to show difference values between columns into two sheets and show the result in another sheet for more explanation


sheet1:

[TABLE="width: 578"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]BRAND[/TD]
[TD]TYPE[/TD]
[TD]ORIGIN[/TD]
[TD]QUNTITY[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10.00-16 8PR[/TD]
[TD]FSM[/TD]
[TD]THI[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10-18 10PR FG[/TD]
[TD]FG[/TD]
[TD]***[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]10-16.5 8PR[/TD]
[TD]FG[/TD]
[TD]INDO[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]





sheet2:

[TABLE="width: 578"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]BRAND[/TD]
[TD]TYPE[/TD]
[TD]ORIGIN[/TD]
[TD]QUNTITY[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10.00-16 8PR[/TD]
[TD]FSM[/TD]
[TD]THI[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10-18 10PR FG[/TD]
[TD]FG[/TD]
[TD]***[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]





what i would the result in sheet3:


[TABLE="width: 578"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]BRAND[/TD]
[TD]TYPE[/TD]
[TD]ORIGIN[/TD]
[TD]QUNTITY[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10.00-16 8PR[/TD]
[TD]FSM[/TD]
[TD]THI[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10-18 10PR FG[/TD]
[TD]FG[/TD]
[TD]***[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]10-16.5 8PR[/TD]
[TD]FG[/TD]
[TD]INDO[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Can the BRAND column name be used to match the rows between sheets?
Or can there be the same brand with different TYPE and/or ORIGIN?

Can there be multiple instances of the same item in each sheet?
Could the item in row 3 be repeated in row 300?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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