How to Compare Two Excel Files

Locate your workbook and sheet names., Create a comparison workbook., Place the title of the column., Name the second column., (For example) Estimate the difference of each product., Drag down the lower corner square and get all differences, as...

7 Steps 2 min read Medium

Step-by-Step Guide

  1. Step 1: Locate your workbook and sheet names.

    In this case, we use three example workbooks located and named as follows:
    C:\Compare\Book1.xls (containing a sheet named “Sales 1999”) C:\Compare\Book2.xls (containing a sheet named “Sales 2000”) Both workbooks have the first column “A” with the name of the product, and the second column “B” with the amount sold each year.

    The first row is the name of the column.
  2. Step 2: Create a comparison workbook.

    We will work on Book3.xls to do a comparison and create one column containing the products, and one with the difference of these products between both years.

    C:\Compare\Book3.xls (containing a sheet named “Comparison”) , Only with “Book3.xls” opened, go to cell “A1” and type: ='C:\Compare\Sales 1999'!A1 If you are using a different location replace “C:\Compare\” with that location.

    If you are using a different filename remove “Book1.xls” and add your filename instead.

    If you are using a different sheet name replace “Sales 1999” with the name of your sheet.

    Beware not to have the file you are referring (“Book1.xls”) opened:
    Excel may change the reference you are adding if you have it open.

    You’ll end up with a cell that has the same content as the cell you referred to.# Drag down cell “A1” to list all products.

    Grab it from the bottom right square and drag it, copying all names. , In this case we call it “Difference” in "B1". , In this case, by typing in cell “B2”: ='C:\Compare\Sales 2000'!B2-'C:\Compare\Sales 1999'!B2 You can do any normal Excel operation with the referred cell from the referred file. ,
  3. Step 3: Place the title of the column.

  4. Step 4: Name the second column.

  5. Step 5: (For example) Estimate the difference of each product.

  6. Step 6: Drag down the lower corner square and get all differences

  7. Step 7: as before.

Detailed Guide

In this case, we use three example workbooks located and named as follows:
C:\Compare\Book1.xls (containing a sheet named “Sales 1999”) C:\Compare\Book2.xls (containing a sheet named “Sales 2000”) Both workbooks have the first column “A” with the name of the product, and the second column “B” with the amount sold each year.

The first row is the name of the column.

We will work on Book3.xls to do a comparison and create one column containing the products, and one with the difference of these products between both years.

C:\Compare\Book3.xls (containing a sheet named “Comparison”) , Only with “Book3.xls” opened, go to cell “A1” and type: ='C:\Compare\Sales 1999'!A1 If you are using a different location replace “C:\Compare\” with that location.

If you are using a different filename remove “Book1.xls” and add your filename instead.

If you are using a different sheet name replace “Sales 1999” with the name of your sheet.

Beware not to have the file you are referring (“Book1.xls”) opened:
Excel may change the reference you are adding if you have it open.

You’ll end up with a cell that has the same content as the cell you referred to.# Drag down cell “A1” to list all products.

Grab it from the bottom right square and drag it, copying all names. , In this case we call it “Difference” in "B1". , In this case, by typing in cell “B2”: ='C:\Compare\Sales 2000'!B2-'C:\Compare\Sales 1999'!B2 You can do any normal Excel operation with the referred cell from the referred file. ,

About the Author

A

Amanda Murray

Brings years of experience writing about crafts and related subjects.

64 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: