Compare three columns between two spreadsheets and display differences in a third spreadsheet

pencil pusher

New Member
Joined
Feb 24, 2016
Messages
11
Hi everyone!

I am working on a workbook where I want to create a macro to compare the differences between two spreadsheets that have three columns of 1000's of data. That's three columns of data in one spreadsheet and three in the other.

I may not be explaining the best way to do this, but basically, I have data from inventory I took about a month ago and I want to determine the differences (additions and removals, and if there is no change) from that report to another report I generated about a year ago; so I can clearly see the changes (additions and removals, and if there is no change)

The data will not necessarily match in number of rows and will not be in order so it cannot be compared side-by-side. I would like the results to be displayed in a 3rd spreadsheet on the same workbook that will show the results of the matching three columns and then in a fourth column display whether it was added (something added to the inventory since a year ago) or removed (something removed from inventory since a year ago) or if there was no change. So I can easily spot and sort the deltas on the third spreadsheet.

Thanks for your help in advance!

here is an example of what the columns might look like

sheet 1 Report from a year ago
ABC
Order#NameQTY
001Banana5
001Banana4
002Grape5
002Orange1

<tbody>
</tbody>

Sheet 2 Report Recently pulled (In my example I put the changes in bold red so you can see what I changed/Added)
ABC
Order#NameQTY
002
Apple
5
003Banana4
001Banana5
002Orange8
005
Watermelon
2

<tbody>
</tbody>

sheet 3 Delta Results (additions/removals and if there was no changes on sheet 2 when compared to sheet 1)
ABCD
Order#NameQTYDelta
001Banana5No Change
002Apple5Added
001Banana4Removed
002Grape5Removed
002Orange1Removed
003Banana4Added
002Orange8Added
005Watermelon2Added

<tbody>
</tbody>
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I meant to say to compare between 2 tabs... and post in another tab... not spreadsheet ... sorry about that. the data is in the same spreadsheet/workbook ... but in different tabs and I want the put the results in the third tab.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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