Pinterest Pixel

Top 4 Methods to Compare two Excel files for differences

John Michaloudis
Comparing two Excel files is an important skill for data analysis, financial reporting, or inventory management.
In this article, we will cover the top 4 methods on how to compare two Excel files.

Comparing two Excel files is an important skill for data analysis, financial reporting, or inventory management. In this article, we will cover the top 4 methods on how to compare two Excel files.

Key Takeaways:

  • You can compare two Excel files by viewing them side by side.
  • Use New Window to compare two sheets in the same workbook.
  • Formulas can quickly find differences between two worksheets.
  • Conditional Formatting can highlight cells based on certain conditions.

 

How to Compare two Excel files

Viewing Multiple Sheets Side by Side

STEP 1: To utilize this feature and juxtapose your data sets, start by opening the two sheets you wish to compare.

  • Sales Report- January

Compare two Excel files

  • Sales Report- February

Compare two Excel files

STEP 2: Then, with a simple navigation to the “View” tab and a click on the “View Side by Side” button, your sheets will snugly align, permitting a simultaneous, panoramic view of your data landscapes.

Compare two Excel files

  • Use ‘Arrange All’ and then select ‘Vertical’ to align the sheets vertically.

Compare two Excel files

STEP 3: As a result, you can swiftly scroll through both sheets simultaneously, matching data line by line or column by column, ensuring nothing eludes your analysis.

Compare two Excel files

Note: The same process can be done for anyone working on multiple workbooks i.e., > 2 workbooks.

Compare Two Sheets within the Same Workbook

STEP 1: Open your workbook in Excel.

Compare two Excel files

STEP 2: Go to the “View” tab, and in the “Window” group, click the “New Window” button. This opens the same workbook in a new window.

Compare two Excel files

STEP 3: Click the “View Side by Side” button on the ribbon.

Compare two Excel files

STEP 4: In the first window, select Sheet 1, in the second window, select Sheet 3 and finally in the second window, select Sheet 3.

  • Use ‘Arrange All’ and then select ‘Vertical’ to align the sheets vertically.

Compare two Excel files

  • RESULT-

Compare two Excel files

 

How to Compare Two Worksheets for Differences in Values

Jumping into Inquire for Excel comparisons is like having a detective at your fingertips, keen to unravel the mysteries between your worksheets.

Let’s have a look at the two sheets; namely

  • Sheet 1

Compare two Excel files

  • Sheet 2

Compare two Excel files

It is the most straightforward method for identifying cells with differing values when comparing data in Excel. You’ll have a difference report in a new worksheet as a result.

STEP 1: Simply create a new, blank Excel page here, Sheet3 type the following formula in cell A1;

=IF(Sheet1!A1<>Sheet2!A2,”Sheet1:”&Sheet1!A2&” vs Sheet2:”&Sheet2!A2,””)

Compare two Excel files

STEP 2: And then move and drag the fill handle to the right and down to compare the two spreadsheets for differences.

Compare two Excel files

  • Because relative cell references are used, the formula will vary depending on how the column and row are positioned relative to one another. Here we can see the difference between the two sheets in cell A2, A5, A6 & A7 of Sheet 3.

Compare two Excel files

INFERENCE:- It means that in Sheet 3;

  • Cell A2 shows a discrepancy in the spelling of the First name of the person.
  • Cell A5, A6 & A7 highlight that the First Names; Sara, Louis, and Phil are not a part of Sheet 1 data.

Hence, this tool is perfect for auditing purposes, ensuring that all alterations are intentional and accounted for, keeping your data’s integrity in check.

Compare two sheets using Conditional Formatting

STEP 1: Highlight the data range in the first sheet.

Compare two Excel files

STEP 2: Go to the “Home” tab, click “Conditional Formatting,” then choose “New Rule.”

Compare two Excel files

STEP 3: Select “Use a formula to determine which cells to format.” Enter =B2<>’Sales Jan Budget’!B2, set the desired format, and click “OK.”

Compare two Excel files

STEP 4: This highlights discrepancies between the sheets.

Compare two Excel files

 

FAQs

How to compare two Excel files?

To compare two Excel files,

  • Open both files
  • Go to the View tab
  • Select View Side by Side

Can I compare two sheets in the same workbook?

Yes. Use New Window and View Side by Side. This allows you to view different worksheets at the same time.

How to find different values between worksheets?

You can use an IF formula to display the differences. The formula returns only the cells where the values do not match.

Can Excel highlight changed cells automatically?

Yes. Use Conditional Formatting with a comparison formula. Excel will highlight cells that contain different values.

Which method is best for finding mismatched data?

You can find mismatched data by using formulas and Conditional Formatting.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  028: The Best Microsoft Excel Tips & Tricks in 2020!

Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...