Need to compare data in multiple workbooks

jbass350z

New Member
Joined
Oct 19, 2009
Messages
22
I have 2 spreadsheets that I need to compare. I need to run a macro that compares data sets in both spreadsheet and then outputs the differences in a new book.

It needs to check that that line PART NUMBER exists in both files, and that the QUANTITY matches. If there are differences, it should log those to the new sheet, along with a note of which spreadsheet is missing the data, or has different quantities.

How can I do this?

Spreadsheet 1

ABCD
PART NUMBERQUANTITYDESCRIPTIONCOMMENT
PART 12FIRST PART SAMPLETHIS IS A COMMENT
PART 25SECOND PARTANOTHER COMMENT

Spreadsheet 2

ABCD
PART NUMBERQUANTITYDESCRIPTIONCOMMENT
PART 12FIRST PART SAMPLETHIS IS A COMMENT
PART 215SECOND PARTANOTHER COMMENT
PART 3103RD PARTANOTHER COMMENT


Output would be ONLY items that are different between the two spreadsheets. Something like this :


ABCDEF
PART NUMBERQUANTITY SHEET 1QUANTITY SHEET 2DESCRIPTIONCOMMENTPROBLEM
PART 2515SECOND PARTANOTHER COMMENTDIFFERENT QUANTITY
PART 30103RD PARTANOTHER COMMENTMISSING FROM SHEET 1


[/tr]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,391
Messages
6,119,249
Members
448,879
Latest member
oksanana

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