PDF download Download Article PDF download Download Article

This wikiHow teaches how to compare different sets of data in Excel, from two columns in the same spreadsheet to two different Excel files.

Method 1
Method 1 of 3:

Comparing Columns

PDF download Download Article
  1. When comparing two columns in a worksheet, you'll be outputting your results onto a blank column. Make sure you are starting on the same row as the two columns you're comparing.
    • For example, if the two columns you want to compare start on A2 and B2, highlight C2.
  2. Type the following formula, which will compare A2 and B2. Change the cell values if your columns start on different cells:
    • =IF(A2=B2,"Match","No match")
    Advertisement
  3. This will apply the formula to the rest of the cells in the column, automatically adjusting the values to match.
  4. These will indicate whether the contents of the two cells had matching data. This will work for strings, dates, numbers, and times. Note that case is not taken into consideration ("RED" and "red" will match).[1]
  5. Advertisement
Method 2
Method 2 of 3:

Comparing Workbooks

PDF download Download Article
  1. You can use the View Side by Side feature in Excel to view two different Excel files on the screen at the same time. This has the added benefit of scrolling both sheets at once.
  2. You should now have two instances of Excel open on your computer.
  3. You'll find this in the Window section of the ribbon. Both workbooks will appear in on the screen, oriented horizontally.
  4. The workbooks will change so that one is on the left and the other is on the right.
  5. When Side by Side is enabled, scrolling will be synchronized between both windows. This will allow you to easily look for differences as you scroll through the spreadsheets.
    • You can disable this feature by clicking the Synchronous Scrolling button in the View tab.
  6. Advertisement
Method 3
Method 3 of 3:

Comparing Worksheets

PDF download Download Article
  1. To use this comparison formula, both sheets must be in the same workbook file.
  2. You'll see this at the bottom of the screen to the right of your open sheets.
  3. Type or copy the following formula into A1 on your new sheet:
    • =IF(Sheet1!A1<> Sheet2!A1, "Sheet1:"&Sheet1!A1&" vs Sheet2:"&Sheet2!A1, "")
  4. Drag it down as far down as the first two sheets go. For example, if your spreadsheets go down to Row 27, drag the Fill box down to that row.
  5. After dragging it down, drag it to the right to cover the original sheets. For example, if your spreadsheets go to Column Q, drag the Fill box to that column.
  6. After dragging the Fill box across the new sheet, you'll see cells fill wherever differences between the sheets were found. The cell will display the value of the cell in the first sheet and the value of the same cell in the second sheet.
    • For example, A1 in Sheet1 is "Apples," and A1 in Sheet2 is "Oranges." A1 in Sheet3 will display "Sheet1:Apples vs Sheet2:Oranges" when using this comparison formula.[2]
  7. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I find duplicate values in a row?
    Community Answer
    Community Answer
    To find duplicate values simply use the Data --> Remove Duplicates feature and follow the prompts on the screen.
  • Question
    How do I subtract two rows?
    Community Answer
    Community Answer
    You have to select the 2 rows {shift} and then right click on the now highlighted rows. A box will pop up with a list of actions. You should click on 'delete rows'.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Use Macros in ExcelUse Macros in Excel
Make a Spreadsheet in ExcelMake a Spreadsheet in Excel
Create Pivot Tables in Excel Create Pivot Tables in Microsoft Excel to Analyze Data
Apply Conditional Formatting in ExcelApply Conditional Formatting in Excel
Recover a Corrupt Excel FileRecover a Corrupt Excel File
Merge Cells in Excel Merge Cells in Microsoft Excel: A Quick Guide
Unprotect an Excel SheetUnprotect an Excel Sheet
Unhide All Rows and Columns in Microsoft Excel
Use If‐Else in Excel Use If‐Else in Microsoft Excel: Step-by-Step Tutorial
Insert Pictures in Excel That Automatically Size to Fit Cells Insert Pictures in Excel That Automatically Size to Fit Cells
Create a Mortgage Calculator With Microsoft ExcelCreate a Mortgage Calculator With Microsoft Excel
Create a Graph in Excel Create a Graph in Excel
Unhide Columns in Excel Show Hidden Columns in Microsoft Excel & Unhide Column A
Ethernet Doesn't Have a Valid IP Configuration Fix Ethernet Doesn't Have a Valid IP Configuration on Windows
Advertisement

About This Article

wikiHow Staff
Co-authored by:
wikiHow Staff Writer
This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards. This article has been viewed 1,865,547 times.
How helpful is this?
Co-authors: 32
Updated: July 28, 2022
Views: 1,865,547
Categories: Microsoft Excel
Article SummaryX

1. Highlight the first cell in a blank column.
2. Type " =IF(A2=B2,"Match","No match")".
3. Drag the formula down to populate all cells in the column.
4. Look for "Match" or "No match" in the results.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,865,547 times.

Reader Success Stories

  • Max Ramirez

    Max Ramirez

    Aug 21, 2017

    "Needed to compare a list of employee data with sheets containing different elements, but one sheet was 3 employees..." more
    Rated this article:
Share your story

Is this article up to date?

Advertisement