XL07 Comparison Spreadsheet Help

FrozenPeas

New Member
Joined
Sep 19, 2011
Messages
1
Hi all, I was hoping you could help me with a problem.

I have a spreadsheet that is made up of 3 tabs, Original, Match and Difference. It's purpose is to return the difference between 2 pasted reports (One is pasted in the Original Tab and the other in the Match Tab and the differences are shown in the Difference Tab).

I currently use this formula to accomplish this =IF(Original!W11=Match!W11,"Match",Original!W11-Match!W11) which does it's job well and accurately reports the differences across the 17 columns.

However it happens often that there is a mismatch between the Original and Match tabs because of an extra record that does not appear in both sheets, this of course creates a string of mismatches.

What I would like the spreadsheet to do is look at the ID field, if the ID's match then I would like it to continue to show the differences as it is currently. If the ID's don't match I would like it to show the ID field that does not match on it's own in the differences spreadsheet.

I can do these 2 operations fine, what I can't solve is that when they ID fields don't match the Differences spreadsheet needs to look at the ID that didn't match as it may then match the one below. I think this could be achieved by a loop but I can't get my head around it.

Example of what I would like it to do.

ORG MAT DIFF
123 123 Match

1234 5678 1234

5678 9123 Match
(Because the 2nd row didn't match the 3rd row looks at the 2nd row to check for a match).

I hope that I have explained this clearly enough to understand, if further clarification is needed please ask below and I will do my best to provide you with the information.

At the very least, thank you for reading this post, I hope you can help me.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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