Comparing 2 excel documents question

Mikelowrey

Board Regular
Joined
Apr 20, 2014
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have 2 excel documents that I want to compare both have the same information, is just one has been updates where things have been removed. One has 80K entries, and the other has 75K, is there a way for me to see what were those items removed in comparison with the first document?

Thank you!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Match the name/Id of the 80k document to the 75k document, if it throws and error that value was removed.
 
Upvote 0
Mikelowrey, Without knowing how your data arrangement and format, I can only give you a simple example.

Column C has the formula: =IF(A2<>B2,ROW(B2),"ok")
Column D has the formula: =IF(ISERR(SMALL(C$2:C$24,ROW(C2)-1)),"",SMALL(C$2:C$24,ROW(C2)-1))

screenshot.png
 
Last edited by a moderator:
Upvote 0
Mikelowrey, Without knowing how your data arrangement and format, I can only give you a simple example.

Column C has the formula: =IF(A2<>B2,ROW(B2),"ok")
Column D has the formula: =IF(ISERR(SMALL(C$2:C$24,ROW(C2)-1)),"",SMALL(C$2:C$24,ROW(C2)-1))

Thanks, will this work with 2 different documents? they are not sheets. I could try to put 2 sheets in one document
 
Last edited by a moderator:
Upvote 0
You could use an array formula to get a list of removed items.
In the example below the formula in D2 is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed. Change ranges to match your data.
Excel Workbook
ABCDE
1List 1List 2# Items Removed3
2Item1Item1Item3
3Item2Item2Item5
4Item3Item4Item10
5Item4Item6
6Item5Item7
7Item6Item8
8Item7Item9
9Item8
10Item9
11Item10
Sheet
 
Upvote 0
You could use an array formula to get a list of removed items.
In the example below the formula in D2 is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed. Change ranges to match your data.


ABCDE
1List 1List 2
# Items Removed3
2Item1Item1
Item3
3Item2Item2
Item5
4Item3Item4
Item10
5Item4Item6


6Item5Item7


7Item6Item8


8Item7Item9


9Item8



10Item9



11Item10




<colgroup><col style="width:30px; "><col style="width:74px;"><col style="width:71px;"><col style="width:32px;"><col style="width:141px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E1=COUNTA($A$2:$A$11)-COUNTA(B2:B8)
D2{=IF(ROWS($I$2:I2)>$E$1,"",INDEX($A$2:$A$11,SMALL(IF(ISNUMBER(MATCH($A$2:$A$11,$B$2:$B$8,0))=FALSE,ROW($A$2:$A$11)-ROW($A$2)+1),ROWS($I$2:I2))))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

thank you for this. Is it possible to do it by complete rows? What I am trying to say is, every row has about 15 columns with information from that business.
 
Upvote 0
With two different documents, often the best answer is to just right-click / copy the new sheets into the old one. If I renamed the sheets to "OldData" and "NewData", I would do my formula work in a third "FormulaSheet", starting in Column A, and it would look like:

Column A of "FormulaSheet": =IF(OldData!A2<>NewData!A2,Row(NewData!A2),"ok")
Column B of "FormulaSheet": =IF(ISERR(SMALL(A$2:A$24,Row(A2)-1)).

Again, this depends on how your arrange your data and both "old" and "new" sheets must have the same format.
 
Upvote 0
If you are trying to match whole rows then maybe something like below.
Add a helper column to the larger list (List1 below), which will return a "No" if not in List2.
Formula in A12 (Row Ref:#) is an array formula that must be entered with CTRL-SHIFT-ENTER. - Drag down row as needed.

Formula in B12 is copied down and across as needed.
Excel Workbook
ABCDEFGH
1List 1HelperList 2
2Header1Header2Header3In List 2??Header1Header2Header3
3Item1Data1Data2 Item1Data1Data2
4Item2Data3Data4Item2Data3Data4
5Item3Data5Data6NoItem4Data7Data8
6Item4Data7Data700NoItem5Data9Data10
7Item5Data9Data10
8
9
10# Not in List 22
11Row Ref: #Header1Header2Header3
123Item3Data5Data6
134Item4Data7Data700
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,661
Members
449,114
Latest member
aides

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