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

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,507
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,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