How to Compare Data in Excel

This wikiHow teaches how to compare different sets of data in Excel, from two columns in the same spreadsheet to two different Excel files. Highlight the first cell of a blank column. When comparing two columns in a worksheet, you'll be...

Method 1 of 3:

Comparing Two Columns

  1. Picture 1 of How to Compare Data in Excel
    Highlight the first cell of a blank column. 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.
    1. For example, if the two columns you want to compare start on A2 and B2, highlight C2.
  2. Picture 2 of How to Compare Data in Excel
    Type the comparison formula for the first row. Type the following formula, which will compare A2 and B2. Change the cell values if your columns start on different cells:
    1. =IF(A2=B2,"Match","No match")
  3. Picture 3 of How to Compare Data in Excel
    Double-click the Fill box in the bottom corner of the cell. This will apply the formula to the rest of the cells in the column, automatically adjusting the values to match.
  4. Picture 4 of How to Compare Data in Excel
    Look for Match and No match. 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]
Method 2 of 3:

Comparing Two Workbooks Side-By-Side

  1. Picture 5 of How to Compare Data in Excel
    Open the first workbook you want to compare. 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. Picture 6 of How to Compare Data in Excel
    Open the second workbook. You should now have two instances of Excel open on your computer.
  3. Picture 7 of How to Compare Data in Excel
    Click the View tab on either window.
  4. Picture 8 of How to Compare Data in Excel
    Click View Side by Side. You'll find this in the Window section of the ribbon. Both workbooks will appear in on the screen, oriented horizontally.
  5. Picture 9 of How to Compare Data in Excel
    Click Arrange All to change the orientation.
  6. Picture 10 of How to Compare Data in Excel
    Click Vertical and then OK. The workbooks will change so that one is on the left and the other is on the right.
  7. Picture 11 of How to Compare Data in Excel
    Scroll in one window to scroll in both. 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.
    1. You can disable this feature by clicking the Synchronous Scrolling button in the View tab.
Method 3 of 3:

Comparing Two Sheets for Differences

  1. Picture 12 of How to Compare Data in Excel
    Open the workbook containing the two sheets you want to compare. To use this comparison formula, both sheets must be in the same workbook file.
  2. Picture 13 of How to Compare Data in Excel
    Click the + button to create a new blank sheet. You'll see this at the bottom of the screen to the right of your open sheets.
  3. Picture 14 of How to Compare Data in Excel
    Place your cursor in cell A1 on the new sheet.
  4. Picture 15 of How to Compare Data in Excel
    Enter the comparison formula. Type or copy the following formula into A1 on your new sheet:
    1. =IF(Sheet1!A1<> Sheet2!A1, "Sheet1:"&Sheet1!A1&" vs Sheet2:"&Sheet2!A1, "")
  5. Picture 16 of How to Compare Data in Excel
    Click and drag the Fill box in the corner of the cell.
  6. Picture 17 of How to Compare Data in Excel
    Drag the Fill box down. 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.
  7. Picture 18 of How to Compare Data in Excel
    Drag the Fill box right. 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.
  8. Picture 19 of How to Compare Data in Excel
    Look for differences in the cells that don't match. 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.
    1. 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]
« PREV POST
READ NEXT »