4 Ways to Compare Two Excel Files

Table of contents:

4 Ways to Compare Two Excel Files
4 Ways to Compare Two Excel Files

Video: 4 Ways to Compare Two Excel Files

Video: 4 Ways to Compare Two Excel Files
Video: Unable to find bundled Java version windows | for Android Studio Electric Eel 2024, November
Anonim

This article discusses how to directly compare information between two Excel files. Once you are able to manipulate and compare the information, you can use the " Look Up ", " Index " and " Match " functions to help with the analysis.

Step

Method 1 of 4: Using the “Side by Side” Display Feature in Excel

Compare Two Excel Files Step 1
Compare Two Excel Files Step 1

Step 1. Open the workbook that needs to be compared

You can find the book file by opening Excel, clicking the " File ", choose " Open ”, and clicking on the two workbooks you want to compare in the menu that appears.

Visit the workbooks storage folder, select each book separately, and keep both book windows open

Compare Two Excel Files Step 2
Compare Two Excel Files Step 2

Step 2. Click the View tab

After opening a book, you can click the tab “ View ” at the top center of the Excel window.

Compare Two Excel Files Step 3
Compare Two Excel Files Step 3

Step 3. Click View Side by Side

This option is in the “Window” section of the menu “ View ” and is indicated by a two-sheet icon. The two worksheets will be displayed in a smaller, vertically stacked Excel window.

  • This option may not be available on the “ View ” if you have only one workbook open in Excel.
  • If there are two workbooks open, Excel will automatically select both documents to view side by side.
Compare Two Excel Files Step 4
Compare Two Excel Files Step 4

Step 4. Click Arrange All

This setting allows you to change the orientation of the workbook when viewed side-by-side.

In the menu that appears, you can select an option to view both workbooks (e.g. “ Horizontal ”, “ vertical ”, “ Cascade ", or " Tiled ”).

Compare Two Excel Files Step 5
Compare Two Excel Files Step 5

Step 5. Enable the “Synchronous Scrolling” feature

After opening both workbooks, click the “ Synchronous Scrolling ” (under option “ View Side by Side ”) so that you can easily scroll through both Excel worksheets per row and manually check for differences in data.

Compare Two Excel Files Step 6
Compare Two Excel Files Step 6

Step 6. Drag one of the workbooks to scroll through both pages

Once the “Synchronous Scrolling” feature is enabled, you can scroll through both workbook pages at the same time and easily compare existing data.

Method 2 of 4: Using the “Lookup” Function

Compare Two Excel Files Step 7
Compare Two Excel Files Step 7

Step 1. Open the two workbooks that need to be compared

You can find it by opening Excel, clicking on the menu “ File ", click " Open ”, and selects two workbooks to compare from the menu.

Visit the workbook storage folder, select each book separately, and keep both book windows open

Compare Two Excel Files Step 8
Compare Two Excel Files Step 8

Step 2. Specify the boxes that can be selected by the file user

In this box, a drop-down list will be displayed.

Compare Two Excel Files Step 9
Compare Two Excel Files Step 9

Step 3. Click the box

The grid frame will appear darker after clicking.

Compare Two Excel Files Step 10
Compare Two Excel Files Step 10

Step 4. Click the DATA tab on the toolbar

Once the tab is clicked, select VALIDATION ” in the drop-down menu. A pop-up menu will appear after that.

If you are using an older version of Excel, the “DATA” toolbar will appear after you select the “tab. DATA ”, and displays the option “ Data Validation "in lieu of option" Validation ”.

Compare Two Excel Files Step 11
Compare Two Excel Files Step 11

Step 5. Click List on the “ALLOW” list

Compare Two Excel Files Step 12
Compare Two Excel Files Step 12

Step 6. Click the button with the red arrow

This button allows you to select the source (in other words, the first column) to be processed into data for the drop-down menu.

Compare Two Excel Files Step 13
Compare Two Excel Files Step 13

Step 7. Select the first column on the list and press Enter key

Click OK ” when the data validation window is displayed. You can see a box with an arrow in it. This arrow will display a drop-down list when clicked.

Compare Two Excel Files Step 14
Compare Two Excel Files Step 14

Step 8. Select the box that you want to use to display other information

Compare Two Excel Files Step 15
Compare Two Excel Files Step 15

Step 9. Click the Insert and Reference tab

In earlier versions of Excel, you don't need to click the “ Insert " and can directly select the tab " Functions ” to display category “ Lookup & Reference ”.

Compare Two Excel Files Step 16
Compare Two Excel Files Step 16

Step 10. Select Lookup & Reference from the list of categories

Compare Two Excel Files Step 17
Compare Two Excel Files Step 17

Step 11. Look for Lookup on the list

Once the option is double-clicked, another box will be displayed and you can select the option “ OK ”.

Compare Two Excel Files Step 18
Compare Two Excel Files Step 18

Step 12. Select the box with the drop-down list for the “lookup_value” entry

Compare Two Excel Files Step 19
Compare Two Excel Files Step 19

Step 13. Select the first column in the list for the “Lookup_vector” entry

Compare Two Excel Files Step 20
Compare Two Excel Files Step 20

Step 14. Select the second column in the list for the “Result_vector” entry

Compare Two Excel Files Step 21
Compare Two Excel Files Step 21

Step 15. Select an entry from the drop-down list

The information will change automatically after that.

Method 3 of 4: Using XL Comparator Service

Compare Two Excel Files Step 22
Compare Two Excel Files Step 22

Step 1. Open a browser and visit

You will be taken to the XL Comparator website where you can upload the two Excel workbooks you want to compare.

Compare Two Excel Files Step 23
Compare Two Excel Files Step 23

Step 2. Click Choose File

A new window will open and you can search for one of the two Excel documents you want to compare. Make sure you select the file through the two available fields on the web page.

Compare Two Excel Files Step 24
Compare Two Excel Files Step 24

Step 3. Click Next > to continue

Once the option is selected, a pop-up message will be displayed at the top of the page informing you that the file upload process is already underway, and large files may take longer to process. Click Ok ” to close the message.

Compare Two Excel Files Step 25
Compare Two Excel Files Step 25

Step 4. Select the column you want to scan

Under each file name, there is a drop-down menu labeled “ Select a column Click the drop-down menu on each file to select the columns you want to mark and compare.

The column names will be displayed when you click the drop-down menu

Compare Two Excel Files Step 26
Compare Two Excel Files Step 26

Step 5. Select the content for the result file

There are four options with balloons next to them in this category. One of them you need to select as the format guide for the result document.

Compare Two Excel Files Step 27
Compare Two Excel Files Step 27

Step 6. Select an option for easy column comparison

In the bottom box in the comparison menu, you will see two additional filter conditions for document comparison: “ Ignore uppercase/lowercase " and " Ignore "spaces" before and after values " Click the checkboxes on both options before continuing.

Compare Two Excel Files Step 28
Compare Two Excel Files Step 28

Step 7. Click Next > to continue

You will be taken to the download page of the resulting document afterwards.

Compare Two Excel Files Step 29
Compare Two Excel Files Step 29

Step 8. Download the comparison document

Step 1. Find the workbook and worksheet name

  • In this method, we will use three sample workbooks that are saved and named as follows:

    • C:\Appeals\Books1.xls (loads the worksheet labeled “Sales 1999”)
    • C:\Appeals\Books2.xls (loads a spreadsheet labeled “2000 Sales”)
  • Both workbooks have the first column “A” with the product name, and the second column “B” with the number of sales each year. The first row is the column name.
Compare Two Excel Files Step 31
Compare Two Excel Files Step 31

Step 2. Create a comparison workbook

You need to create Buku3.xls to compare the data. Use one column to display the product name, and the next column for the difference in product sales between the years being compared.

C:\Appeals\Books3.xls (loads a worksheet labeled “Difference”)

Compare Two Excel Files Step 32
Compare Two Excel Files Step 32

Step 3. Place the title in the column

Just open the “Book3.xls” worksheet, then click the “A1” box and type:

  • ='C:\Appeal\[Book1.xls]Sales 1999'!A1
  • If you saved the file in a different directory, replace “C:\Banding\” with the address of that directory. If you are using a different file name, replace “Book1.xls” and enter an appropriate file name. If you use a different sheet name/label, replace “Sales 1999” with the appropriate sheet name/label. Remember not to open the referenced file (“Book1.xls”). Excel can change the added reference if you open it. You can actually get a box with the same content/data as the box that is used as a reference.

Step 4. Drag the “A1” box downwards to display all product lists

Click the lower right corner of the box and drag downwards to display all the names.

Compare Two Excel Files Step 33
Compare Two Excel Files Step 33

Step 5. Name the second column

For this example, you can type “Difference” in the “B1” box.

Compare Two Excel Files Step 34
Compare Two Excel Files Step 34

Step 6. Estimate the difference between each product sale (as an example for this article)

In this example, type the following entry into the “B2” box:

  • ='C:\Appeal\[Book2.xls]Sales 2000'!B2-'C:\Appeal\[Book1.xls]Sales 1999'!B2
  • You can use normal Excel operations with the source data box from the reference file.
Compare Two Excel Files Step 35
Compare Two Excel Files Step 35

Step 7. Drag the dots in the lower right corner of the box downwards to see the difference in sales of each product, just like in the previous box (“A1”)

Recommended: