Identify differences in two sheets

LoveLace85

New Member
Joined
Sep 11, 2019
Messages
3
Hi everybody,
I am struggling with this case.
Every week I have a report with updated data and I would like to find easily the difference with the previous one.

So the point is I would like to have a comparison row by row from column A to column F (here semplified in two columns).

For example

File 1:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]A[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]A[/TD]
[/TR]
</tbody>[/TABLE]



File 2:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]A[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]A[/TD]
[/TR]
</tbody>[/TABLE]

I would like to have a macro where the 2 rows is marked or printed out.
Any help is much appreciated
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi,

Here's a possible formula version if it suits;

  • Apply the formula in the new file
  • Highlight Columns A,B & C
  • Conditional Format/New Rule/Use a formula to determine which cells/Format Values where this formula is true

=$C1="New" format to fill or Font color as you like


  • You can then filter your data by "New" in the C column and print as required.


Book1
AB
13A
23F
35A
Sheet1



Book1
ABC
13A 
224New
33F
45A
Sheet1
Cell Formulas
RangeFormula
C1=IF(ISNUMBER(MATCH(A1&B1,INDEX('[File 1.xlsx]Sheet1'!$A$1:$A$3&'[File 1.xlsx]Sheet1'!$B$1:$B$3,),0)),"","New")
 
Upvote 0
Hi,
thank you but I wasn't able to adapt the formula you wrote me to my table.
What I did was putting th two files into 1 as different sheets, having the new table in the sheet 2

1. CONCAT(A1:F1) in H1
2. CONCAT(Sheet1!A1:F1) in I1
3. NOT(ISERROR(MATCH(H1,I:I,0)))
4. filter the "FALSE" value

What do you think? Is there a quicker method?

In addition, I am willing to learn more about vba. Is there anyone that has an idea how I could do the same with a macro?

Thank you in advance
 
Upvote 0
And now I was thinking that indeed my system fails a bit because it will not detect if the row has been added or modified.
 
Upvote 0
To me, this task is accomoplished much easier using Microsoft Access by using two Unmacthed Queries (one going each way), when joining the the two files/tables omn all five fields.
It will list out all records in each file/table that do not have a matching record in the other (and it doesn't really care if rows have been removed or inserted).
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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