3 Ways to Compare Data in Excel

Table of contents:

3 Ways to Compare Data in Excel
3 Ways to Compare Data in Excel

Video: 3 Ways to Compare Data in Excel

Video: 3 Ways to Compare Data in Excel
Video: How to Divide a Whole Number by a Fraction | Math with Mr. J 2024, December
Anonim

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

Step

Method 1 of 3: Comparing Two Columns

Compare Data in Excel Step 1
Compare Data in Excel Step 1

Step 1. Mark the first cell in the blank column

When you want to compare two columns in the same worksheet, you need to display the results of the comparison in one blank column. Make sure you select cells in the same row as the two columns you want to compare.

For example, if the column you want to compare is in cells A2 and B2, highlight cell C2

Compare Data in Excel Step 2
Compare Data in Excel Step 2

Step 2. Type the comparison formula into the first column

Type the formula below to compare the data in columns A2 and B2. Change the cell value if the column starts in a different cell:

=IF(A2=B2, "Match", "No match")

Compare Data in Excel Step 3
Compare Data in Excel Step 3

Step 3. Double-click the fill box in the bottom corner of the cell

After that, the formula will be applied to all the cells in the result column. Automatically, the cells in the result column will be adjusted to match or mismatch data in columns A2 and B2.

Compare Data in Excel Step 4
Compare Data in Excel Step 4

Step 4. Pay attention to the Match and No match labels

The label will indicate whether the contents of the cells in the two compared columns have the appropriate data or not. This also applies to strings, dates, numbers, and times. Keep in mind that case size doesn't matter (eg "RED" and "red" are treated as the same data).

Method 2 of 3: Comparing Two Files (Workbook) Side by Side

Compare Data in Excel Step 5
Compare Data in Excel Step 5

Step 1. Open the first Excel file or worksheet that you want to compare

You can use Excel's View Side by Side feature to view two different files on one screen at once. With this feature, you can slide worksheets at the same time.

Compare Data in Excel Step 6
Compare Data in Excel Step 6

Step 2. Open the second file

Now, there are two Excel files open on your computer.

Compare Data in Excel Step 7
Compare Data in Excel Step 7

Step 3. Click the View tab in any file window

Compare Data in Excel Step 8
Compare Data in Excel Step 8

Step 4. Click the View Side by Side button

It's in the Windows section of the. After that, both files will be displayed on the screen horizontally.

Compare Data in Excel Step 9
Compare Data in Excel Step 9

Step 5. Click Arrange All to change the orientation

Compare Data in Excel Step 10
Compare Data in Excel Step 10

Step 6. Click Vertical, then select OK

After that, the appearance of the worksheet will change so that one of the sheets is displayed on the left side, and the other sheet is displayed on the right side.

Compare Data in Excel Step 11
Compare Data in Excel Step 11

Step 7. Slide pages in one window to scroll pages in both windows

When the Side by Side feature is enabled, screen shifts will apply to both Excel windows. This way, you can easily see the difference in the data while sliding the worksheet.

You can disable this feature by clicking the “Synchronous Scrolling” button on the “View” tab

Method 3 of 3: Finding Differences in Two Sheets

Compare Data in Excel Step 12
Compare Data in Excel Step 12

Step 1. Open the file containing the two pages you want to compare

To use this comparison formula, both worksheets must be stored in the same file or worksheet.

Compare Data in Excel Step 13
Compare Data in Excel Step 13

Step 2. Click the + button to create a new page/sheet

You can see the button at the bottom of the screen, next to an existing/opened spreadsheet.

Compare Data in Excel Step 14
Compare Data in Excel Step 14

Step 3. Place the cursor on cell A1 in a new worksheet

Compare Data in Excel Step 15
Compare Data in Excel Step 15

Step 4. Enter the comparison formula

Type or copy the following formula into cell A1 in a new worksheet:

=IF(Sheet1!A1 Sheet2!A1, "Sheet1:"&Sheet1!A1&" vs Sheet2:"&Sheet2!A1, "")

Compare Data in Excel Step 16
Compare Data in Excel Step 16

Step 5. Click and drag the fill box in the bottom corner of cell A1

Compare Data in Excel Step 17
Compare Data in Excel Step 17

Step 6. Drag the fill box downwards

Drag the cells as far as the cells that contain the data in the first sheet. For example, if the data in the first column is displayed up to the 27th row, drag the fill box until it reaches that row.

Compare Data in Excel Step 18
Compare Data in Excel Step 18

Step 7. Drag the fill box towards the right

After dragging it down, drag the fill box to the right until it matches the data cells on the first column sheet. For example, if the first column sheet contains data until it reaches column Q, drag the fill box on the new sheet until it reaches the same column.

Compare Data in Excel Step 19
Compare Data in Excel Step 19

Step 8. Find the data differences in the cells being compared

After you drag the fill box on a new sheet, the cells that contain the difference between the data on the two sheets being compared will be filled with the results of the comparison. Cells containing differences will display values or data from the first column sheet and data from the same cell in the second column sheet.

Recommended: