How to compare two excel files

Excel 2013 Office for business Spreadsheet Compare 2013 Spreadsheet Compare 2016 Spreadsheet Compare 2019 Spreadsheet Compare 2021 More…Less

Let’s say you have two Excel workbooks, or maybe two versions of the same workbook, that you want to compare. Or maybe you want to find potential problems, like manually-entered (instead of calculated) totals, or broken formulas. You can use Microsoft Spreadsheet Compare to run a report on the differences and problems it finds.

Important: Spreadsheet Compare is only available with Office Professional Plus 2013, Office Professional Plus 2016, Office Professional Plus 2019, or Microsoft 365 Apps for enterprise.

Open Spreadsheet Compare

On the Start screen, click Spreadsheet Compare. If you do not see a Spreadsheet Compare option, begin typing the words Spreadsheet Compare, and then select its option.

In addition to Spreadsheet Compare, you’ll also find the companion program for Access – Microsoft Database Compare. It also requires Office Professional Plus versions or Microsoft 365 Apps for enterprise.

Compare two Excel workbooks

  1. Click Home > Compare Files.

    The Compare Files dialog box appears.

  2. Click the blue folder icon next to the Compare box to browse to the location of the earlier version of your workbook. In addition to files saved on your computer or on a network, you can enter a web address to a site where your workbooks are saved.

    Compare Files command

  3. Click the green folder icon next to the To box to browse to the location of the workbook that you want to compare to the earlier version, and then click OK.

    Tip: You can compare two files with the same name if they’re saved in different folders.

  4. In the left pane, choose the options you want to see in the results of the workbook comparison by checking or unchecking the options, such as Formulas, Macros, or Cell Format. Or, just Select All.

    Spreadsheet Compare options

  5. Click OK to run the comparison.

If you get an «Unable to open workbook» message, this might mean one of the workbooks is password protected. Click OK and then enter the workbook’s password. Learn more about how passwords and Spreadsheet Compare work together.

The results of the comparison appear in a two-pane grid. The workbook on the left corresponds to the «Compare» (typically older) file you chose and the workbook on the right corresponds to the «To» (typically newer) file. Details appear in a pane below the two grids. Changes are highlighted by color, depending on the kind of change.

Understanding the results

  • In the side-by-side grid, a worksheet for each file is compared to the worksheet in the other file. If there are multiple worksheets, they’re available by clicking the forward and back buttons on the horizontal scroll bar.

    Note: Even if a worksheet is hidden, it’s still compared and shown in the results.

  • Differences are highlighted with a cell fill color or text font color, depending on the type of difference. For example, cells with «entered values» (non-formula cells) are formatted with a green fill color in the side-by-side grid, and with a green font in the pane results list. The lower-left pane is a legend that shows what the colors mean.

Comparison results of two versions of a workbook

In the example shown here, results for Q4 in the earlier version weren’t final. The latest version of the workbook contains the final numbers in the E column for Q4.

In the comparison results, cells E2:E5 in both versions have a green fill that means an entered value has changed. Because those values changed, the calculated results in the YTD column also changed – cells F2:F4 and E6:F6 have a blue-green fill that means the calculated value changed.

The calculated result in cell F5 also changed, but the more important reason is that in the earlier version its formula was incorrect (it summed only B5:D5, omitting the value for Q4). When the workbook was updated, the formula in F5 was corrected so that it’s now =SUM(B5:E5).

  • If the cells are too narrow to show the cell contents, click Resize Cells to Fit.

Resize Cells

Excel’s Inquire add-in

In addition to the comparison features of Spreadsheet Compare, Excel 2013 has an Inquire add-in you can turn on that makes an «Inquire» tab available. From the Inquire tab, you can analyze a workbook, see relationships between cells, worksheets, and other workbooks, and clean excess formatting from a worksheet. If you have two workbooks open in Excel that you want to compare, you can run Spreadsheet Compare by using the Compare Files command.

If you don’t see the Inquire tab in Excel, see Turn on the Inquire add-in. To learn more about the tools in the Inquire add-in, see What you can do with Spreadsheet Inquire.

Next steps

If you have «mission critical» Excel workbooks or Access databases in your organization, consider installing Microsoft’s spreadsheet and database management tools. Microsoft Audit and Control Management Server provides powerful change management features for Excel and Access files, and is complemented by Microsoft Discovery and Risk Assessment Server, which provides inventory and analysis features, all aimed at helping you reduce the risk associated with using tools developed by end users in Excel and Access.

Also see Overview of Spreadsheet Compare.

Need more help?

One of the most common scenarios when working with Excel spreadsheets is having files with similar or duplicate data. The reasons for this could be many, but it usually involves spending a considerable amount of time checking complete files or separate worksheets manually.

This article will explain how to compare two or multiple Excel files, as well as two Excel sheets, for differences. To achieve this, we will describe how to use three useful methods to spot differences in a quick and easy way; these include side-by-side viewing, conditional formatting rules, and the =IF formula.

How to compare two Excel files using side-by-side view?

We will start by illustrating how to compare two Excel workbooks using the side-by-side view. However, we recommend using this method in case your dataset is not too large; if not, we recommend using one of the two methods outlined further on in this article. This is how you can compare two Excel files using the side-by-side viewing feature.

  1. 1. Open the two Excel workbooks you would like to compare and go to View > View Side by Side on any of the opened files.

How to compare two Excel files View side by side

How to compare two Excel files — View side by side

  1. 2. By default, Excel will place both files horizontally, as shown below.

How to compare two Excel files Horizontal view

How to compare two Excel files — Horizontal view

  1. 3. To arrange them vertically, click “Arrange All”, and then select “Vertical”.

How to compare two Excel files Arrange vertically

How to compare two Excel files — Arrange vertically

  1. 4. The two Excel files will now be arranged vertically, as shown below.

How to compare two Excel files Vertical view

How to compare two Excel files — Vertical view

  1. 5. Make sure that the “Synchronous Scrolling” option is activated since this will allow you to scroll through the data on both files simultaneously and allow you to compare more easily. Although it activates automatically as soon as you enable the side-by-side view, you can also check that it’s activated in your toolbar within the “Window” group.

How to compare two Excel files Synchronous Scrolling

How to compare two Excel files — Synchronous Scrolling

Now that we know how easy it is to compare two Excel files, let’s see how we can apply this viewing method to Excel sheets.

How to Combine Multiple Excel Files Into One

Discover the most popular methods used to manually or automatically combine multiple Excel spreadsheets and data inputs into one master file

READ MORE

How to Combine Multiple Excel Files Into One

How to compare two Excel sheets using side-by-side view?

Sometimes, similar or duplicate data may appear within the same spreadsheet. IF you want to avoid having to switch from one sheet to another to compare the data, this is how you can quickly compare two Excel sheets side by side.

  1. 1. Open the Excel file where you would like to compare sheets. Then, go to View > New Window.

How to compare two Excel files View New Window

How to compare two Excel files — View New Window

  1. 2. You will now have the same Excel file open up in a different window, as shown below.

How to compare two Excel files Same file in New Window

How to compare two Excel files — Same file in New Window

  1. 3. Select “View Side by Side” and make sure to select a different sheet on each file. As before, you can select vertical or horizontal viewing according to your preference.

How to compare two Excel files Sheet 1 and 2

How to compare two Excel files — Sheet 1 and 2

So far, you have seen how easy it is to compare two files and sheets on Excel. However, what if you would like to compare more than two files at the same time? This is how you can compare multiple Excel files using the side-by-side view.

How to compare multiple Excel files using side-by-side view?

Comparing multiple files for differences follows a similar process and will only take you a few simple steps.

  1. 1. Open all the Excel workbooks you would like to compare and go to View > View Side by Side. Select the file you want to start comparing with in the “Compare Side by Side” dialog box.

How to compare two Excel files Compare side by side

How to compare two Excel files — Compare side by side

  1. 2. Click “Arrange All” to view all the opened files at the same time.

How to compare two Excel files Arrange All

How to compare two Excel files — Arrange All

  1. 3. Then, select the type of arrangement according to your preference. Here, I have chosen the “Tiled” arrangement.

How to compare two Excel files Tiled arrangement

How to compare two Excel files — Tiled arrangement

So far, these methods are useful in case your datasets are not too large and easily manageable. If you want to compare larger datasets for differences in values, the best way is to use the =IF formula or a conditional formatting rule. Let’s explore the =IF formula first.

How to compare two Excel sheets using a formula?

This is the most straightforward way to compare data between two Excel sheets. This formula will allow you to identify cells containing different values, and a comparative report will be generated in a new worksheet.

  1. 1. Open a new empty sheet in your Excel workbook and enter the following formula in cell A1: =IF(Sheet1!A1 <> Sheet2!A1, «Sheet1:»&Sheet1!A1&» vs Sheet2:»&Sheet2!A1, «»)

How to compare two Excel files Enter IF formula

How to compare two Excel files — Enter IF formula

  1. 2. Grab the bottom-right corner of the formula cell, and drag down.

How to compare two Excel files A1 cell comparison in Sheets

How to compare two Excel files — A1 cell comparison in Sheets

The formula will adapt to the column and row position it fills. This way, the formula in cell A1 compares to cell A1 in “Sheet1” and “Sheet2”; the formula in cell B1 will compare cell B1 in both sheets as well.

We will now turn to how to compare two Excel sheets by highlighting the differences. The best way to do so is by using the Excel conditional formatting feature.

How to compare two Excel sheets using conditional formatting?

When comparing two very similar and large datasets, the best and quickest way to spot differences in values is to highlight them using the conditional formatting feature.

  1. 1. Open the Excel sheets and select the range of data you would like to compare for differences. A quick way to do this is to click the upper-left cell and then Ctrl + Shift + End to extend the selection to the last cell containing values.

How to compare two Excel files Select cell range

How to compare two Excel files — Select cell range

  1. 2. Go to Home > Conditional Formatting > New rule.

How to compare two Excel files Create New Rule

How to compare two Excel files — Create New Rule

  1. 3. Select the rule type “Use a formula to determine which cells to format” and enter the following, =A1<>Sheet1!A1. The Sheet name included in the formula corresponds to the sheet you are comparing with and not the one you are creating the rule in.

How to compare two Excel files Use a formula

How to compare two Excel files — Use a formula

  1. 4. Once you’ve entered the formula, click “Format”, next to the “Preview” pane.

How to compare two Excel files Format cells

How to compare two Excel files — Format cells

  1. 5. Select how you would like to format the cells, i.e. according to “Number”, “Font”, “Border”, or “Fill”. We recommend highlighting with color fill, so we have chosen a color that will clearly stand out.

How to compare two Excel files Format Fill

How to compare two Excel files — Format Fill

  1. 6. As you can see, Excel has highlighted the different cells in “Sheet 2” compared to “Sheet 1”.

How to compare two Excel files Different cells highlighted

How to compare two Excel files — Different cells highlighted

Now you know how to compare two or multiple Excel files and two sheets on your desktop. What if you want to compare and highlight differences in your Excel sheets online?

How to compare two Excel sheets and highlight differences online?

In case you don’t have Excel installed on your desktop or simply prefer to work online altogether, there are online tools that allow you to compare Excel files and sheets for differences.

Below, we provide a list of third-party tools that will allow you to compare Excel files and sheets online:

  • Layer: Apart from allowing you to review spreadsheet changes and combine multiple spreadsheets into one, Layer offers additional features for file storage and management at a business level.
  • Synkronizer Excel Compare: In addition to the features outlined in this article, it allows you to combine multiple Excel files into one, while maintaining unique values and avoiding duplicates.
  • Ablebits Compare Sheets for Excel: This tool provides step-by-step guidance for efficient comparison and displays the differences found between sheets in the “Review Differences” mode for better management.
  • Florencesoft DiffEngineX: Another excellent alternative that allows you to compare Excel files directly from Microsoft Outlook.

Want to Boost Your Team’s Productivity and Efficiency?

Transform the way your team collaborates with Confluence, a remote-friendly workspace designed to bring knowledge and collaboration together. Say goodbye to scattered information and disjointed communication, and embrace a platform that empowers your team to accomplish more, together.

Key Features and Benefits:

  • Centralized Knowledge: Access your team’s collective wisdom with ease.
  • Collaborative Workspace: Foster engagement with flexible project tools.
  • Seamless Communication: Connect your entire organization effortlessly.
  • Preserve Ideas: Capture insights without losing them in chats or notifications.
  • Comprehensive Platform: Manage all content in one organized location.
  • Open Teamwork: Empower employees to contribute, share, and grow.
  • Superior Integrations: Sync with tools like Slack, Jira, Trello, and more.

Limited-Time Offer: Sign up for Confluence today and claim your forever-free plan, revolutionizing your team’s collaboration experience.

Conclusion

This article has shown you how to compare the data in two Excel files for differences. You can compare data between two files, two sheets, or multiple files using the side-by-side view for a quick and easy comparison. If your dataset is larger, you can apply the IF formula to compare two Excel sheets or use conditional formatting rules to highlight the differences.

Alternatively, for users that prefer to work online, there are platforms that can help you achieve this level of comparison in an online setting, for example, Layer. We also recommend reading our blog article on How To Combine Multiple Files into One as a great way to complete this data comparison process.

Skip to content

9 способов сравнить две таблицы в Excel и найти разницу

В этом руководстве вы познакомитесь с различными методами сравнения таблиц Excel и определения различий между ними. Узнайте, как просматривать две таблицы рядом, как использовать формулы для создания отчета о различиях, выделить несовпадения с помощью условного форматирования и многое другое.

Когда у вас есть две похожие книги Эксель или, лучше сказать, две версии одной и той же книги, что вы обычно хотите с ними делать в первую очередь? Сравнить их на предмет различий, а затем, возможно, объединить в один файл. Кроме того, такая операция может помочь вам обнаружить потенциальные проблемы, такие как битые ссылки, повторяющиеся записи, несогласованные формулы.

  • Визуальное сравнение таблиц.
  • Быстрое выделение различий.
  • Использование формулы сравнения.
  • Как вывести различия на отдельном листе.
  • Как можно использовать функцию ВПР.
  • Выделение различий условным форматированием.
  • Сопоставление при помощи сводной таблицы.
  • Сравнение таблиц при помощи Pover Query.
  • Инструмент сравнения таблиц Ultimate Suite.

Итак, давайте более подробно рассмотрим различные методы сравнения таблиц Excel и выявления различий между ними.

Просмотр рядом, чтобы сравнить таблицы.

Если у вас относительно небольшие файлы и вы внимательны к деталям, этот быстрый и простой способ сравнения может вам подойти. Я говорю о режиме «Просмотр рядом», который позволяет расположить два окна Excel рядом. Вы можете использовать этот метод для визуального сравнения двух таблиц или двух листов из одной книги.

Сравните 2 книги.

Предположим, у вас есть отчеты о продажах за два месяца, и вы хотите просмотреть их оба одновременно, чтобы понять, какие товары показали лучшие результаты в этом месяце, а какие — в прошлом.

Чтобы просмотреть два файла Эксель рядом, сделайте следующее:

  1. Откройте оба файла.
  2. Перейдите на вкладку «Вид» и нажмите кнопку «Рядом». (1) Это оно!

По умолчанию два отдельных окна Excel отображаются горизонтально.

Чтобы разделить окна по вертикали, нажмите кнопку «Упорядочить все» (3) и выберите «Рядом» (4):

В результате два отдельных окна будут расположены, как на скриншоте.

Если вы хотите прокручивать оба листа одновременно, чтобы сравнивать данные строка за строкой, убедитесь, что параметр синхронной прокрутки (2) включен. Он обычно включается автоматически, как только вы активируете режим одновременного просмотра двух книг.

Расположите рядом несколько таблиц Excel.

Чтобы просматривать более двух файлов одновременно, откройте все книги, которые вы хотите сравнить, и нажмите кнопку «Рядом»

Появится диалоговое окно «Сравнить рядом», в котором вы выберете файлы, которые будут отображаться вместе с активной книгой.

Чтобы просмотреть все открытые файлы одновременно, нажмите кнопку «Упорядочить все» и выберите предпочтительное расположение: мозаичное, горизонтальное, вертикальное или каскадное.

Для небольших таблиц вы легко сможете визуально сравнить их данные. Хотя, конечно, риск ошибки из-за человеческого фактора здесь присутствует.

Сравните два листа в одной книге.

Иногда 2 листа, которые вы хотите сравнить, находятся в одной книге. Чтобы просмотреть их рядом, выполните следующие действия.

  1. Откройте файл, перейдите на вкладку «Вид» и нажмите кнопку «Новое окно».

  1. Это действие откроет тот же файл в дополнительном окне.
  2. Включите режим просмотра «Рядом», нажав соответствующую кнопку на ленте.
  3. Выберите лист 1 в первом окне и лист 2 во втором окне.

Быстрое выделение значений, которые различаются.

Это также не очень обременительный способ. Если вам просто нужно найти и удостовериться в наличии или же отсутствии отличий между записями, вам нужно на вкладке «Главная», выбрать кнопку «Найти и выделить», предварительно выделив диапазон, где надо сравнить данные в Эксель.

В открывшемся меню выберите пункт «Выделить группу ячеек…» и в появившемся диалоговом окне выберите «отличия по строкам».

К сожалению, это нормально работает только для сравнения 2 столбцов (или строк), а не всей таблицы целиком. Кроме того, строки должны быть одинаковым образом отсортированы, поскольку ячейки сравниваются построчно. Если у вас товары отсортированы по-разному, либо вообще различный ассортимент, то никакой пользы от этого метода не будет.

Формула сравнения.

Это самый простой способ соотнесения таблиц в Excel, который позволяет идентифицировать в них ячейки с разными значениями. 

Простейший вариант – сопоставление двух таблиц, находящихся на одном листе. Можно соотносить как числовые, так и текстовые значения, всего-навсего прописав в одной из соседних ячеек формулу их равенства. В результате при тождестве ячеек мы получим сообщение ИСТИНА, в противном случае — ЛОЖЬ.

Предположим, у нас имеется два прайс-листа (старый и новый), в которых на некоторые товары различаются цены. При этом порядок следования товаров одинаков. Поэтому мы можем при помощи простейшей формулы прямо на этом же листе сравнить идентичные ячейки с данными.

=G3=C3

Результатом будет являться либо ИСТИНА (в случае совпадения), либо ЛОЖЬ (при отрицательном результате).

Таким же образом можно производить сравнение данных в таблицах, которые расположены на разных листах. Процедура сравнения практически точно такая, как была описана выше, кроме того факта, что при создании формулы придется переключаться между листами. В нашем случае выражение будет иметь следующий вид:

=G3=Лист2!C3

Если ваши таблицы достаточно велики, то довольно утомительно будет просматривать колонку I на предмет поиска слова ЛОЖЬ. Поэтому может быть полезным сразу определить — а есть ли вообще несовпадения?

Можно подсчитать общее количество расхождений и сразу вывести это число где-нибудь отдельно.

=СУММПРОИЗВ(—(C3:C25<>G3:G25))

или можно сделать это формулой массива

{=СУММ(—(C3:C25<>G3:G25))}

Если формула возвращает ноль, значит, данные полностью совпадают. Ну а ежели результат положительный, то нужны более детальные исследования. О них мы и поговорим далее.

Как произвести сравнение на отдельном листе.

Чтобы сравнить два листа Эксель на предмет различий, просто откройте новый пустой лист, введите следующую формулу в ячейку A1, а затем скопируйте ее вниз и вправо, перетащив маркер заполнения:

=ЕСЛИ(Лист1!A1 <> Лист2!A1; «Лист1:»&Лист1!A1&» — Лист2:»&Лист2!A1; «»)

Поскольку мы используем относительные ссылки на ячейки, формула будет меняться в зависимости от расположения столбца и строки. В результате формула в A1 будет сравнивать ячейки A1 в Лист1 и Лист2, формула в B1 будет сравнивать ячейку B1 на обоих листах и ​​так далее. Результат будет выглядеть примерно так:

В результате вы получите отчет о различиях на новом листе. Думаю, это достаточно информативно.

Как вы можете видеть на приведенном выше рисунке, формула сравнивает 2 листа, находит ячейки с разными значениями и отображает различия в соответствующих местах. 

Обратите внимание, что в отчете о различиях (ячейка D4) даты представлены числами, поскольку в таком виде они хранятся во внутренней системе Excel, что не очень удобно для анализа различий между ними.

Как сравнить две таблицы при помощи формулы ВПР.

Предположим, у нас снова 2 прайс-листа. Однако, в отличие от предыдущего примера, они содержат разное количество товаров, да и сами товары расположены в произвольном порядке. Поэтому описанный выше способ, когда мы построчно сравнивали две таблицы, здесь не сработает.

Нам необходимо последовательно взять каждый товар из одной таблицы, найти его во второй, извлечь оттуда его цену и сравнить с первоначальной ценой. Здесь нам не обойтись без формул поиска. Поможет нам функция ВПР.

Для наглядности расположим обе таблицы на одном листе.

Формула

=ЕСЛИОШИБКА(ВПР(F3;$B$3:$C$18;2;0);0)

берёт наименование товара из второго прайса, ищет его в первом, и в случае удачи извлекает соответствующую цену из первой таблицы. Она будет записана рядом с новой ценой в столбце H. Если поиск завершился неудачей, то есть такого товара ранее не было, то ставим 0. Таким образом, старая и новая цена оказываются рядом, и их легко сравнить простейшей операцией вычитания. Что и сделано в столбце I.

Аналогично можно сопоставлять и данные на разных листах. Просто нужно соответствующим образом изменить ссылки в формуле, указав в них имя листа.

Вот еще один пример. Возьмём за основу более новую информацию, то есть второй прайс. Выведем только сведения о том, какие цены и на какие товары изменились. А то, что не изменилось, выводить в итоговом отчёте не будем.

Разберём действия пошагово. Формула в ячейке J3 ищет наименование товара из первой позиции второй таблицы внутри первой. Если таковое найдено, извлекается соответствующая этому товару старая цена и сразу же сравнивается с новой. Если они одинаковы, то в ячейку записывается пустота «». 

=ЕСЛИ(ЕСЛИОШИБКА(ВПР(F3;$B$3:$C$18;2;0);0)=G3;»»;ЕСЛИОШИБКА(ВПР(F3;$B$3:$C$18;2;0);0))

Таким образом, в ячейке J3 будет указана старая цена, если ее удастся найти, а также если она не равна новой.

Далее если ячейка J3 не пустая, то в I3 будет указано наименование товара —  

=ЕСЛИ(J3<>»»;F3;»»)

а в K3 – его новая цена:  

=ЕСЛИ(J3<>»»;G3;»»)

Ну а далее в L3 просто найдем разность K3-J3.

Таким образом, в отчёте сравнения мы видим только несовпадения значений второй таблицы по сравнению с первой.

И еще один пример, который может быть полезен. Попытаемся сравнить в итоговой таблице оба прайс-листа с эталонным общим списком товаров.

В ячейке B2 запишем формулу

=ЕСЛИ(ЕНД(ВПР(A2;Прайс1!$B$3:$B$19;1;0));»Нет»;ВПР(A2;Прайс1!$B$3:$C$19;2;0))

Так мы выясним, какие цены из второй таблицы встречаются в первой.

Для каждой цены из первого прайса проверяем, совпадает ли она с новыми данными  —

=ЕСЛИ(ЕНД(ВПР(A2;Прайс2!$B$3:$B$22;1;0));»Нет»;ВПР(A2;Прайс2!$B$3:$C$22;2;0))

Эталонный список находится у нас в столбце A. В результате мы получили своего рода сводную таблицу цен – старых и новых.

Еще несколько примеров использования функции ВПР для сравнения таблиц вы можете найти в этой статье.

Выделение различий между таблицами цветом.

Чтобы закрасить ячейки с разными значениями на двух листах выбранным вами цветом, используйте функцию условного форматирования Excel:

  • На листе, где вы хотите выделить различия, выберите все используемые ячейки. Для этого щелкните верхнюю левую ячейку используемого диапазона, обычно A1, и нажмите Ctrl + Shift + End, чтобы расширить выделение до последней использованной ячейки.
  • На вкладке Главная кликните Условное форматирование > Новое правило и создайте его со следующей формулой:

=A1<>Лист2!A1

Где Лист2 — это имя другого листа, который вы сравниваете с текущим.

В результате ячейки с разными значениями будут выделены выбранным вами цветом:

Если вы не очень хорошо знакомы с условным форматированием, вы можете найти подробные инструкции по созданию правила в следующем руководстве: Условное форматирование Excel в зависимости от значения ячейки.

Сравнение при помощи сводной таблицы.

Хороший вариант сравнения — объединить таблицы в единую сводную, и там уже сопоставлять данные между собой.

Вернемся к нашему примеру с двумя прайс-листами. Объединим наши данные на одном листе. Чтобы отличить данные одной таблицы от другой, добавим вспомогательный столбец D и укажем в нем, откуда именно взяты данные:

А теперь приступим к созданию сводной таблицы. Я не буду подробно останавливаться на том, как мы это будем делать. Все шаги подробно описаны в статье Как сделать сводную таблицу в Excel.

Поместим поле Товар в область строк, поле Прайс в область столбцов и поле Цена в область значений.

Как видно на скриншоте ниже, для каждого товара, встречающегося хотя бы в одном из прайсов, указана цена.

Сводная таблица автоматически сформирует общий список всех товаров из старого и нового прайсов и сортирует их по алфавиту. Причём, без повторов. У новых товаров нет старой цены, у удаленных товаров — новой цены. Легко увидеть изменения цен, если таковые были.

Общие итоги здесь смысла не имеют, и их можно отключить на вкладке Конструктор — Общие итоги — Отключить для строк и столбцов.

Если изменятся цены, то достаточно просто обновить созданную сводную, щелкнув по ней правой кнопкой мыши — Обновить. А вот если изменится список товаров или добавится новый файл для сравнения, то придется заново формировать исходный массив или же добавлять в него новые данные.

Плюсы: такой подход на порядок быстрее работает с большими объемами данных, чем ВПР. Можно сравнить данные нескольких таблиц.

Минусы: надо вручную копировать данные в одну большую таблицу и добавлять столбец с названием исходного файла.

Сравнение таблиц с помощью Power Query

Power Query — это бесплатная надстройка для Microsoft Excel, позволяющая загружать в него данные практически из любых источников и преобразовывать потом их желаемым образом. В Excel 2016 эта надстройка уже встроена по умолчанию на вкладке Данные, а для более ранних версий ее нужно отдельно скачать с сайта Microsoft и установить.

Перед загрузкой наших прайс-листов в Power Query их необходимо преобразовать сначала в умные таблицы. Для этого выделим диапазон с данными и нажмем на клавиатуре сочетание Ctrl+T или выберем на ленте вкладку Главная — Форматировать как таблицу. Имена созданных таблиц можно изменить на вкладке Конструктор (я оставлю стандартные Таблица1 и Таблица2, которые генерируются по умолчанию).

Загрузите первый прайс в Power Query с помощью кнопки Из таблицы/диапазона на вкладке Данные.

После загрузки вернемся обратно в Excel из Power Query командой Закрыть и загрузить — Закрыть и загрузить в…

В появившемся затем окне выбираем «Только создать подключение».

Повторите те же действия с новым прайс-листом.

Теперь создадим третий запрос, который будет объединять и сравнивать данных из предыдущих двух. Для этого выберем на вкладке Данные — Получить данные — Объединить запросы — Объединить. Все шаги вы видите на скриншоте ниже.

В окне объединения выберем в выпадающих списках наши таблицы, выделим в них столбцы с названиями товаров и в нижней части определим способ объединения — Полное внешнее.

После нажатия на ОК должна появиться таблица из четырёх столбцов, где в четвертой колонке нужно развернуть вложенное содержимое с помощью двойной стрелки в шапке.

После нажатия вы увидите список столбцов из второго прайса. Выбираем Товар и Цена. Получаем следующую картину:

А теперь сравним цены. Идем на вкладку Добавление столбца и жмем на кнопку Условный столбец. А затем в открывшемся окне вводим несколько условий проверки с соответствующими им значениями, которые нужно отобразить:

Теперь осталось вернуться на вкладку Главная и нажать Закрыть и загрузить.

Получаем новый лист в нашей рабочей книге:

Примечание. Если в будущем в наших прайс-листах произойдут любые изменения (добавятся или удалятся строки, изменятся цены и т.д.), то достаточно будет лишь обновить наши запросы сочетанием клавиш Ctrl+Alt+F5 или кнопкой Обновить все на вкладке Данные.

Ведь все данные извлекаются из «умных» таблиц Excel, которые автоматически меняют свой размер при добавлении либо удалении из них какой-либо информации. Однако, помните, что имена столбцов в исходных таблицах не должны меняться, иначе получим ошибку «Столбец такой-то не найден!» при попытке обновить запрос.

Это, пожалуй, самый красивый и удобный способ из всех стандартных. Шустро работает с большими таблицами. Не требует ручных правок при изменении размеров.

Как видите, есть несколько способов сравнить две таблицы Excel, используя формулы или условное форматирование. Однако эти методы не подходят для комплексного сравнения из-за следующих ограничений:

  • Они находят различия только в значениях, но не могут сравнивать формулы или форматирование ячеек.
  • Многие из них не могут идентифицировать добавленные или удаленные строки и столбцы. Как только вы добавите или удалите строку / столбец на одном листе, все последующие строки / столбцы будут отмечены как отличия.
  • Они хорошо работают на уровне листа, но не могут обнаруживать структурные различия на уровне книги Excel, к примеру добавление и удаление листов.

Эти проблемы решаются путем использования дополнений к Excel, о чем мы поговорим далее.

Как сравнить таблицы при помощи Ultimat Suite для Excel

Последняя версия Ultimate Suite включает более 60 новых функций и улучшений, самым интересным из которых является «Сравнение таблиц» — инструмент для сравнения листов или диапазонов данных в Excel.

Чтобы сделать сравнение более интуитивным и удобным, надстройка разработана следующим образом:

  • Мастер шаг за шагом проведет вас через процесс и помогает настраивать различные параметры.
  • Вы можете выбрать алгоритм сравнения, наиболее подходящий для ваших наборов данных.
  • Вместо отчета о различиях сравниваемые листы отображаются в режиме просмотра различий, чтобы вы могли сразу просмотреть все различия и управлять ими по очереди.

Теперь давайте попробуем использовать этот инструмент на наших примерах электронных таблиц из предыдущего примера и посмотрим, отличаются ли результаты.

  1. Нажмите кнопку «Сравнить листы (Compare Two Sheets)» на вкладке «Данные Ablebits » в группе « Объединить »:

  1. Появится окно мастера с предложением выбрать два листа, которые вы хотите сравнить на предмет различий.

По умолчанию выбираются все листы, но вы также можете выбрать текущую таблицу   или определенный диапазон , нажав соответствующую кнопку:

  1. На следующем шаге вы выбираете алгоритм сравнения:
    • Без ключевых столбцов (по умолчанию) — лучше всего подходит для сложных документов, таких как счета-фактуры или контракты.
    • По ключевым столбцам — подходит для таблиц, организованных по столбцам, которые имеют один или несколько уникальных идентификаторов, таких как номера заказов или артикулы товаров.
    • По ячейке — лучше всего использовать для сравнения таблиц с одинаковым макетом и размером, таких как балансы или статистические отчеты.

Совет. Если вы не уверены, какой алгоритм подходит вам, выберите вариант по умолчанию (без ключевых столбцов). Какой бы алгоритм вы ни выбрали, надстройка найдет все различия, только выделит их по-разному (целые строки или отдельные ячейки).

На этом же шаге вы можете выбрать предпочтительный тип соответствия:

  1. Первое совпадение (по умолчанию) — сравнивает строку на листе 1 с первой найденной строкой на листе 2, которая имеет хотя бы одну совпадающую ячейку.
  2. Наилучшее совпадение — сравнивает строку на листе 1 со строкой на листе 2, которая имеет максимальное количество совпадающих ячеек.
  3. Полное совпадение — находит на обоих листах строки, которые имеют одинаковые значения во всех ячейках, и отмечает все остальные строки как уникальные.

В этом примере мы сначала будем искать наилучшее совпадение, используя режим сравнения без ключевых столбцов, который установлен  по умолчанию.

  1. На следующем шаге укажите, какие различия следует выделить, а какие игнорировать, и как помечать различия.

Скрытые строки и столбцы не имеют значения, и мы говорим надстройке игнорировать их:

  1. Нажмите кнопку «Сравнить (Compare)» и подождите немного, пока программа обработает ваши данные и создаст их резервные копии. Резервные копии всегда создаются автоматически, поэтому вы можете не беспокоиться о сохранности своих данных.

После обработки листы открываются друг рядом с другом в специальном режиме просмотра различий с выбранным способом выделения отличий:

На скриншоте выше различия выделены цветами по умолчанию:

  • Красные строки — строки, существующие только на Листе 2 (справа).
  • Зеленые ячейки — различные ячейки в частично совпадающих строках.

А вот если мы выберем второй алгоритм сравнения — по ключевому столбцу, то нам будет предложено указать его. В нашем случае вполне можно ключевым столбцом обозначить «Товар».

После этого мы видим немного другой результат сравнения:

Как видите, основным здесь действительно является факт совпадения значений в столбцах B. Строки, в которых нет такого совпадения, сразу выделяются красным или фиолетовым. А вот если совпадение есть, тогда идем в столбец С и сравниваем записанную там цену. Зелёные ячейки как раз и показывают нам товары, которые имеются в обоих прайс-листах, но цена на них изменилась.

Не знаю как вам, но мне второй вариант представляется более информативным.

А что же дальше делать с этим сравнением?

Чтобы помочь вам просматривать различия и управлять ими, на каждом листе есть собственная вертикальная панель инструментов. Для неактивного рабочего листа (справа на нашем скриншоте) эта панель отключена. Чтобы активировать панель инструментов, просто выберите любую ячейку на соответствующем листе.

Используя её, вы последовательно просматриваете найденные различия и решаете, объединить их или игнорировать:

Как только последнее различие будет устранено, вам будет предложено сохранить книги и выйти из режима просмотра различий.

Если вы еще не закончили обработку различий, но хотели бы сделать перерыв, нажмите кнопку «Выйти из просмотра различий» в нижней части панели инструментов и выберите один из следующих вариантов:

  • Сохраните внесенные вами изменения и сохраните оставшиеся различия (Save workbooks and keep difference marks),
  • Сохраните внесенные вами изменения и удалите оставшиеся различия (Save workbooks and remove difference marks),
  • Восстановите исходные книги из резервных копий (Restore workbooks from backup copies).

Вот как вы можете сравнить два листа в Excel при помощи инструмента сравнения Compare Two Sheets (надеюсь, он вам понравился :)

Если вам интересно попробовать, полнофункциональная ознакомительная версия доступна для загрузки здесь .

Watch Video – How to Compare Two Excel Sheets for Differences

Comparing two Excel files (or comparing two sheets in the same file) can be tricky as an Excel workbook only shows one sheet at a time.

This becomes more difficult and error-prone when you have a lot of data that needs to be compared.

Thankfully, there are some cool features in Excel that allow you to open and easily compare two Excel files.

In this Excel tutorial, I will show you multiple ways to compare two different Excel files (or sheets) and check for differences. The method you choose will depend on how your data is structured and what kind of comparison you’re looking for.

Let’s get started!

Compare Two Excel Sheets in Separate Excel Files (Side-by-Side)

If you want to compare two separate Excel files side by side (or two sheets in the same workbook), there is an in-built feature in Excel to do this.

It’s the View Side by Side option.

This is recommended only when you have a small dataset and manually comparing these files is likely to be less time-consuming and error-prone. If you have a large dataset, I recommend using the conditional method or the formula method covered later in this tutorial.

Let’s see how to use this when you have to compare two separate files or two sheets in the same file.

Suppose you have two files for two different months and you want to check what values are different in these two files.

Two files that need to be compared

By default, when you open a file, it’s likely to take up your entire screen. Even if you reduce the size, you always see one Excel file at the top.

With the view side-by-side option, you can open two files and then arrange these horizontally or vertically. This allows you to easily compare the values without switching back and forth.

Below are the steps to align two files side by side and compare them:

  1. Open the files that you want to compare.
  2. In each file, select the sheet that you want to compare.
  3. Click the View tabClick the view tab
  4. In the Windows group, click on the ‘View Side by Side’ option. This becomes available only when you have two or more Excel files open.Click on View Side by Side option

As soon as you click on the View side by side option, Excel will arrange the workbook horizontally. Both of the files will be visible, and you’re free to edit/compare these files while they are arranged side by side.

Files get arranges side by side to be compared

In case you want to arrange the files vertically, click on the Arrange All option (in the View tab).

Click on Arrange all to decide how to align these workbooks

This will open the ‘Arrange Windows’ dialog box where you can select ‘Vertical’.

Click on Vertical and then click on Ok

At this point, if you scroll down in one of the worksheets, the other one would remain as is. You can change this so that when you scroll in one sheet, the other also scrolls at the same time. This makes it easier to do a line by line comparison and spot any differences.

But to do this, you need to enable Synchronous Scrolling.

To enable Synchronous Scrolling, click on the View tab (in any of the workbooks) and then click on the Synchronous Scrolling option. This is a toggle button (so if you want to turn it off, simply click on it again).

Click on Synchronous scrolling

Comparing Multiple Sheets in Separate Excel Files (Side-by-Side)

With the ‘View Side by Side’ option, you can only compare two Excel file at one go.

In case you have multiple Excel files open, when you click on the View Side by Side option, it will show you a ‘Compare Side by Side’ dialog box, where you can choose which file you want to compare with the active workbook.

In case you want to compare more than two files at one go, open all these files and then click on the Arrange All option (it’s in the View tab).

Click on Arrange all to decide how to align these workbooks

In the Arrange Windows dialog box, select Vertical/Horizontal and then click OK.

This will arrange all the open Excel files in the selected order (vertical or horizontal).

Compare Two Sheets (Side-by-Side) in the Same Excel Workbook

In case you want to compare two separate sheets in the same workbook, you can’t use the View side by side feature (as it works for separate Excel files only).

But you can still do the same side-by-side comparison.

This is made possible by the ‘New Windows’ feature in Excel, that allows you to open two instances on the same workbook. Once you have two instances open, you can arrange these side by side and then compare these.

Suppose you have an Excel workbook that has two sheets for two different months (Jan and Feb) and you want to compare these side by side to see how the sales per store have changed:

Two Sheets that have data that needs to compared side by side

Below are the steps to compare two sheets in Excel:

  1. Open the workbook that has the sheets that you want to compare.
  2. Click the View tabClick the view tab
  3. In the Window group, click on the ‘New Window’ option. This opens the second instance of the same workbook.
  4. In the ‘View’ tab, click on ‘Arrange All’. This will open the Arrange Windows dialog boxClick on Arrange all to decide how to align these workbooks
  5. Select ‘Vertical’ to compare data in columns (or select Horizontal if you want to compare data in rows).Click on Vertical and then click on Ok
  6. Click OK.

The above steps would arrange both the instances of the workbook vertically.

At this point in time, both the workbooks would have the same worksheet selected. In one of the workbooks, select the other sheet that you want to compare with the active sheet.

How does this work?

When you click on New Window, it opens the same workbook again with a slightly different name. For example, if your workbook name is ‘Test’ and you click on New Window, it will name the already open workbook ‘Test – 1’ and the second instance as ‘Test – 2’.

Note that these are still the same workbook. If you make any changes in any of these workbooks, it would be reflected in both.

And when you close any one instance of the open file, the name would revert back to the original.

You can also enable synchronous scrolling if you want (by clicking on the ‘Synchronous Scrolling’ option in the ‘View’ tab)

Compare Two Sheets and Highlight Differences (Using Conditional Formatting)

While you can use the above method to align the workbooks together and manually go through the data line by line, it’s not a good way in case you have a lot of data.

Also, doing this level of comparison manually can lead to a lot of errors.

So instead of doing this manually, you can use the power of Conditional Formatting to quickly highlight any differences in the two Excel sheets.

This method is really useful if you have two versions in two different sheets and you want to quickly check what has changed.

Note that you CAN NOT compare two sheets in different workbooks.

Since Conditional Formatting can not refer to an external Excel file, the sheets you need to compare needs to be in the same Excel workbook. In case these aren’t, you can copy a sheet from the other file to the active workbook and then make this comparison.

For this example, suppose you have a dataset as shown below for two months (Jan and Feb) in two different sheets and you want to quickly compare the data in these two sheets and check if the prices of these items have changed or not.

Price data for items to be compared over month

Below are the steps to do this:

  1. Select the data in the sheet where you want to highlight the changes. Since I want to check how prices have changed from Jan to Feb, I have selected the data in the Feb sheet.
  2. Click the Home tabClick the Home tab
  3. In the Styles group, click on ‘Conditional Formatting’Click on Conditional formatting
  4. In the options that show up, click on ‘New Rule’Click on new rule
  5. In the ‘New Formatting Rule’ dialog box, click on ‘Use a formula to determine which cells to format’Click on Use a formula to determine which cells to format
  6. In the formula field, enter the following formula: =B2<>Jan!B2Formula to compare data in two sheets in conditional formatting
  7. Click the Format buttonClick on the Format button
  8. In the Format Cells dialog box that shows up, click on the ‘Fill tab’ and select the color in which you want to highlight the mismatched data.Specify the format in which you want to get the differences in data
  9. Click OK
  10. Click OK

The above steps would instantly highlight any changes in the dataset in both the sheets.

Data where differences have been highlighted

How does this work?

Conditional formatting highlights a cell when the given formula for that cell returns a TRUE. In this example, we are comparing each cell in one sheet with the corresponding cell in the other sheet (done using the not equal to operator <> in the formula).

When conditional formatting finds any difference in the data, it highlights that in the Jan sheet (the one in which we have applied the conditional formatting.

Note that I have used relative reference in this example (A1 and not $A$1 or $A1 or A$1).

When using this method to compare two sheets in Excel, remember the following;

  • This method is good to quickly identify differences, but you can’t use it on an on-going basis. For example, if I enter a new row in any of the datasets (or delete a row), it would give me incorrect results. As soon as I insert/delete the row, all subsequent rows are considered as different and highlighted accordingly.
  • You can only compare two sheets in the same Excel file
  • You can only compare the value (not the difference in formula or formatting).

Compare Two Excel Files/Sheets And Get The Differences Using Formula

If you’re only interested in quickly comparing and identifying the differences between two sheets, you can use a formula to fetch only those values that are different.

For this method, you will need to have a separate worksheet where you can fetch the differences.

This method would work if want to compare two separate Excel workbook or worksheets in the same workbook.

Let me show you an example where I am comparing two datasets in two sheets (in the same workbook).

Suppose you have the dataset as shown below in a sheet called Jan (and similar data in a sheet called Feb), and you want to know what values are different.

Price data for items to be compared over month

To compare the two sheets, first, insert a new worksheet (let’s call this sheet ‘Difference’).

In cell A1, enter the following formula:

=IF(Jan!A1<>Feb!A1,"Jan Value:"&Jan!A1&CHAR(10)&"Feb Value:"&Feb!A1,"")

Difference Report to highight difference betwen sheets

Copy and paste this formula for a range so that it covers the entire dataset in both the sheets. Since I have a small dataset, I will only copy and paste this formula in A1:B10 range.

The above formula uses an IF condition to check for differences. In case there is no difference in the values, it will return blank, and in case there is a difference, it will return the values from both the sheets in separate lines in the same cell.

The good thing with this method is that it only gives you the differences and show you exactly what the difference is. In this example, I can easily see that the price in cell B4 and B8 are different (as well as the exact values in these cells).

Compare Two Excel Files/Sheets And Get The Differences Using VBA

If you need to compare Excel files or sheets quite often, it’s a good idea to have a ready Excel macro VBA code and use it whenever you need to make the comparison.

You can also add the macro to the Quick Access Toolbar so that you can access with a single button and instantly know what cells are different in different files/sheets.

Suppose you have two sheets Jan and Feb and you want to compare and highlight differences in the Jan sheet, you can use the below VBA code:

Sub CompareSheets()
Dim rngCell As Range
 
For Each rngCell In Worksheets("Jan").UsedRange

    If Not rngCell = Worksheets("Feb").Cells(rngCell.Row, rngCell.Column) Then
        rngCell.Interior.Color = vbYellow
    End If

Next rngCell

End Sub

The above code uses the For Next loop to go through each cell in the Jan sheet (the entire used range) and compares it with the corresponding cell in the Feb sheet. In case it finds a difference (which is checked using the If-Then statement), it highlights those cells in yellow.

You can use this code in a regular module in the VB Editor.

And if you need to do this often, it’s better to save this code in the Personal Macro workbook and then add it to the Quick Access toolbar. In those ways, you will be able to do this comparison with a click of a button.

Here are the steps to get the Personal Macro Workbook in Excel (it’s not available by default so you need to enable it).

Here are the steps to save this code in the Personal Macro Workbook.

And here you will find the steps to add this macro code to the QAT.

Using a Third-Party Tool – XL Comparator

Another quick way to compare two Excel files and check for matches and differences is by using a free third-party tool such as XL Comparator.

This is a web-based tool where you can upload two Excel files and it will create a comparison file that will have the data that is common (or different data based on what option you selected.

Suppose you have two files that have customer datasets (such as name and email address), and you want to quickly check what customers are there is file 1 and not in file 2.

Below is how you compare two Excel files and create a comparison report:

  1. Open https://www.xlcomparator.net/
  2. Use the Choose file option to upload two files (maximum size of each file can be 5MB)
  3. Click on the Next button.
  4. Select the common column in both these files. The tool will use this common column to look for matches and differences
  5. Select one of the four options, whether you want to get matching data or different data (based on File 1 or File 2)
  6. Click on Next
  7. Download the comparison file which will have the data (based on what option you selected in step 5)

Below is a video that shows how XL Comparator tool works.

One concern you may have when using a third-party tool to compare Excel files is about privacy.

If you have confidential data and privacy is really important for it, it’s better to use other methods shown above.

Note that the XL Comparator website mentions that they delete all the files after 1 hour of doing the comparison.

These are some of the methods you can use to compare two different Excel files (or worksheets in the same Excel file). Hope you found this Excel tutorial useful.

You may also like the following Excel tutorials:

  • How to Compare Two Columns in Excel (for matches & differences)
  • How to  Remove Duplicates in Excel
  • How to Compare Text in Excel (Easy Formulas)
  • Split Each Excel Sheet Into Separate Files (Step-by-Step)
  • Combine Data from Multiple Workbooks in Excel
  • Combine Data From Multiple Worksheets into a Single Worksheet in Excel
  • How to Compare Dates in Excel (Greater/Less Than, Mismatches)

Free Online Diff Checker to Compare Two Excel Spreadsheet Files

How to compare two excel files for differences?

Using this free web tool, you can compare any Excel / Calc document easily. Just select first/original file in left window and second/modified file in right window. Your data will automatically be extracted. First sheet is automatically selected and you can change it in the dropdown.

Alternatively you can also copy and paste directly into left and right windows.

After that click on 🔍 Find Difference button to find diff. All differences will be shown with removals/additions & changed values highlighted in red/green & blue color.

You can export the diff .xlsx, .csv, .ods, or .html file format.(If you face problem in Excel export, use OpenDocument export(unstyled).)

Otherwise you can also select all (Ctrl-A) and copy (Ctrl-C) and then paste in your spreadsheet software (Ctrl-V).

How to Compare two excel sheets in same file?

To diff two sheets, you can upload same file for both original/modified section and choose sheet accordingly from the dropdown.

What does +++/—/—>/@@/: indicate 🤔?

  • +++ This row has been added in second/modified file.
  • This row has been removed in second/modified file.
  • —> Cell value different.
  • : Moved/Reordered row.
  • @@ Header row.
  • Unchanged rows/cols have been omitted in between.

excel diff online example

Read More about spec

What spreadsheet file formats does this Excel diff tool support?

This tool can read following worksheet/workbook formats:

  • Excel 2007+ (XLS/XLSX/XLSM/XLSB)
  • Delimiter-Separated Values Text files (CSV/TXT) (Use CSV Compare tool if CSV parsing fails)
  • Data Interchange Format (DIF)
  • OpenDocument Spreadsheet (ODS/FODS)
  • HTML Tables

Does this compare against formulas?

No, this tool only does value based comparisons. Two files are compared per row/column wise. So, to get better results your sheets should be organized (sorted/ similar column layout).

What about my data?

This is a web based tool. All data extraction/comparison/export is done in your 🖥 browser itself. Nothing is uploaded to our server if you are only comparing.

However, if you want to share results with others, you must choose to save the result which then will be uploaded to our server.

You’ll be given a unique URL for your result & your result will be viewable to anyone with that unique URL.

Libraries used in this Tool
  • SheetJS
  • Daff

Bookmark this app

Press Ctrl + D to add this page to your favorites or Esc to cancel the action.

Send the download link to

Send us your feedback

Oops! An error has occurred.

Invalid file, please ensure that uploading correct file

Error has been reported successfully.


You have successfully reported the error, You will get the notification email when error is fixed.

Click this link to visit the forums.

Immediately delete the uploaded & processed files.

Are you sure to delete the files?

Enter Url


Download Article

Learn how to compare the values of two spreadsheets using synchronous scrolling, lookups, and more


Download Article

This article focuses on how to directly compare information between two different Excel files. Once you get to manipulating and comparing the information, you might want to use Look Up, Index, and Match to help your analysis.

  1. Image titled Compare Two Excel Files Step 1

    1

    Open the workbooks you need to compare. You can find these by opening Excel, clicking File then Open, and selecting two workbooks to compare from the menu that appears.

    • Navigate to the folder where you have the Excel workbooks saved, select each workbook separately, and keep both workbooks open.
  2. Image titled Compare Two Excel Files Step 2

    2

    Click the View tab. Once you’ve opened one of the workbooks, you can click on the View tab in the top-center of the window.

    Advertisement

  3. Image titled Compare Two Excel Files Step 3

    3

    Click View Side by Side. This is located in the Window group of the ribbon for the View menu and has two sheets as its icon. This will pull up both worksheets into smaller windows stacked vertically.

    • This option may not be readily visible under the View tab if you only have one workbook open in Excel.
    • If there are two workbooks open, then Excel will automatically choose these as the documents to view side by side.
  4. Image titled Compare Two Excel Files Step 4

    4

    Click Arrange All. This setting lets you change the orientation of the workbooks when they’re displayed side-by-side.

    • In the menu that pops up, you can select to have the workbooks Horizontal, Vertical, Cascade, or Tiled.
  5. Image titled Compare Two Excel Files Step 5

    5

    Enable Synchronous Scrolling. Once you have both worksheets open, click on Synchronous Scrolling (located under the View Side by Side option) to make it easier to scroll through both Excel files line-by-line to check for any differences in data manually.

  6. Image titled Compare Two Excel Files Step 6

    6

    Scroll through one workbook to scroll through both. Once Synchronous Scrolling is enabled, you’ll be able to easily scroll through both workbooks at the same time and compare their data more easily.

  7. Advertisement

  1. Image titled Compare Two Excel Files Step 7

    1

    Open the workbooks you need to compare. You can find these by opening Excel, clicking File then Open, and selecting two workbooks to compare from the menu that appears.

    • Navigate to the folder where you have the Excel workbooks saved, select each workbook separately and keep both workbooks open.
  2. Image titled Compare Two Excel Files Step 8

    2

    Decide on which cell you would like the user to select from. This is where a drop-down list will appear later.

  3. Image titled Compare Two Excel Files Step 9

    3

    Click on the cell. The border should darken.

  4. Image titled Compare Two Excel Files Step 10

    4

    Click the DATA tab on the toolbar. Once you’ve clicked on it, select VALIDATION in the drop-down menu. A pop up should appear.

    • If you’re using an older version of Excel, the DATA toolbar will pop up once you select the DATA tab and display Data Validation as the option instead of Validation.
  5. Image titled Compare Two Excel Files Step 11

    5

    Click List in the ALLOW list.

  6. Image titled Compare Two Excel Files Step 12

    6

    Click the button with the red arrow. This will let you pick your source (in other words, your first column), which will then be processed into data in the drop-down menu.

  7. Image titled Compare Two Excel Files Step 13

    7

    Select the first column of your list and press Enter. Click OK when the data validation window appears. You should see a box with an arrow on it, which will drop-down when you click the arrow.

  8. Image titled Compare Two Excel Files Step 14

    8

    Select the cell where you want the other info to show up.

  9. Image titled Compare Two Excel Files Step 15

    9

    Click the Insert and Reference tabs. In older versions of Excel, you can skip clicking the Insert tab and just click on the Functions tab to pull up the Lookup & Reference category.

  10. Image titled Compare Two Excel Files Step 16

    10

    Select Lookup & Reference from the category list.

  11. Image titled Compare Two Excel Files Step 17

    11

    Find Lookup in the list. When you double-click it, another box should appear and you can click OK.

  12. Image titled Compare Two Excel Files Step 18

    12

    Select the cell with the drop-down list for the lookup_value.

  13. Image titled Compare Two Excel Files Step 19

    13

    Select the first column of your list for the Lookup_vector.

  14. Image titled Compare Two Excel Files Step 20

    14

    Select the second column of your list for the Result_vector.

  15. Image titled Compare Two Excel Files Step 21

    15

    Pick something from the drop-down list. The info should automatically change.

  16. Advertisement

  1. Image titled Compare Two Excel Files Step 22

    1

    Open your browser and go to https://www.xlcomparator.net. This will take you to XL Comparator’s website, where you can upload two Excel workbooks for comparison.

  2. Image titled Compare Two Excel Files Step 23

    2

    Click Choose File. This will open a window where you can navigate to one of the two Excel documents you want to compare. Make sure to select a file for both fields.

  3. Image titled Compare Two Excel Files Step 24

    3

    Click Next > to continue. Once you’ve selected this, a pop-up message should appear at the top of the page letting you know that the file upload process has begun and that larger files will take longer to process. Click Ok to close this message.

  4. Image titled Compare Two Excel Files Step 25

    4

    Select the columns you want to be scanned. Underneath each file name is a drop-down menu that says Select a column. Click on the drop-down menu for each file to select the column you want to be highlighted for comparison.

    • Column names will be visible when you click the drop-down menu.
  5. Image titled Compare Two Excel Files Step 26

    5

    Select contents for your result file. There are four options with bubbles next to them in this category, one of which you’ll need to select as the formatting guidelines for your result document.

  6. Image titled Compare Two Excel Files Step 27

    6

    Select the options to ease column comparison. In the bottom cell of the comparison menu, you’ll see two more conditions for your document comparison: Ignore uppercase/lowercase and Ignore «spaces» before and after values. Click the checkbox for both before proceeding.

  7. Image titled Compare Two Excel Files Step 28

    7

    Click Next > to continue. This will take you to the download page for your result document.

  8. Image titled Compare Two Excel Files Step 29

    8

    Download your comparison document. Once you’ve uploaded your workbooks and set your parameters, you’ll have a document showing comparisons between data in the two files available for download. Click the underlined Click here text in the Download the comparison file box.

    • If you want to run any other comparisons, click New comparison in the bottom-right corner of the page to restart the file upload process.
  9. Advertisement

  1. Image titled Compare Two Excel Files Step 30

    1

    Locate your workbook and sheet names.

    • In this case, we use three example workbooks located and named as follows:
      • C:CompareBook1.xls (containing a sheet named “Sales 1999”)
      • C:CompareBook2.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. Image titled Compare Two Excel Files Step 31

    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:CompareBook3.xls (containing a sheet named “Comparison”)
  3. Image titled Compare Two Excel Files Step 32

    3

    Place the title of the column. Only with “Book3.xls” opened, go to cell “A1” and type:

    • =’C:Compare[Book1.xls]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.
  4. 4

    Drag down cell “A1” to list all products. Grab it from the bottom right square and drag it, copying all names.

  5. Image titled Compare Two Excel Files Step 33

    5

    Name the second column. In this case, we call it “Difference” in «B1».

  6. Image titled Compare Two Excel Files Step 34

    6

    (For example) Estimate the difference of each product. In this case, by typing in cell “B2”:

    • =’C:Compare[Book2.xls]Sales 2000′!B2-‘C:Compare[Book1.xls]Sales 1999’!B2
    • You can do any normal Excel operation with the referred cell from the referred file.
  7. Image titled Compare Two Excel Files Step 35

    7

    Drag down the lower corner square and get all differences, as before.

  8. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Remember it is important to have the referred files closed. If you have them opened, Excel may override what you type in the cell, making it impossible to access the file afterward (unless again you have it open).

Thanks for submitting a tip for review!

Advertisement

About This Article

Article SummaryX

1. Open two Excel documents.
2. Click the View tab.
3. Click View Side by Side.
4. Click Arrange All to adjust display.
5. Enable Synchronous Scrolling.

Did this summary help you?

Thanks to all authors for creating a page that has been read 233,995 times.

Is this article up to date?

В разных папках на вашем компьютере есть два файла Excel с одинаковыми именами. Как определить, являются ли файлы дубликатами или разными версиями одной книги Excel? В этом руководстве мы покажем вам, как сравнить два файла Excel, даже если на вашем компьютере не установлен Excel.

Эти инструменты сравнения могут помочь вам обнаружить несогласованные данные, устаревшие значения, неверные формулы, неправильные вычисления и другие проблемы на вашем листе Excel.

Если вы можете быстро просмотреть данные листа, откройте их в отдельном окне и выполните параллельное сравнение, используя функцию Excel «Просмотр бок о бок».

  1. Откройте файл Excel, содержащий оба листа, перейдите на вкладку «Просмотр» и выберите «Новое окно».

  1. В новом окне выберите (второй) рабочий лист, который вы хотите сравнить, или переключитесь на него.

Измените размер или измените порядок окон, чтобы оба листа отображались на экране компьютера бок о бок. Опять же, этот метод лучше всего подходит для сравнения листов Excel с несколькими строками или столбцами.

  1. Если вы предпочитаете использовать инструмент сравнения Excel для размещения обоих окон бок о бок, проверьте вкладку «Просмотр» и выберите значок «Просмотр бок о бок».

Excel сразу же расположит оба листа по горизонтали на экране вашего компьютера. Сравнивать листы в этом альбомном режиме может быть немного сложно, поэтому перейдите к следующему шагу, чтобы изменить ориентацию на вертикальное / книжное расположение.

  1. Снова перейдите на вкладку «Просмотр» и выберите «Упорядочить все».

  1. Выберите Вертикально в окне «Упорядочить» и нажмите OK.

В результате оба листа будут располагаться бок о бок на вашем экране. Есть еще один параметр, который вам нужно включить, чтобы упростить сравнение.

  1. Нажмите «Синхронная прокрутка» и убедитесь, что он выделен. Это позволяет прокручивать оба листа одновременно, обеспечивая синхронное построчное сравнение вашего набора данных.

Если верхние строки обоих листов являются заголовками, убедитесь, что вы закрепили их, чтобы они не перемещались вместе с остальной частью набора данных при прокрутке.

  1. Выберите «Закрепить панели», а затем «Закрепить верхнюю строку». Повторите этот шаг для второго листа.

  1. Выберите «Сбросить положение окна», чтобы вернуть ориентацию сравнения к альбомной.

  1. Когда вы закончите сравнение, выберите Просмотр бок о бок, чтобы вернуть листы к их исходным размерам.

Теперь вы можете просматривать оба листа и сравнивать их построчно. Основным преимуществом этой функции является то, что она встроена во все версии Excel. Однако вам все равно придется проделать кучу работы — например, отмечать ячейки с разными фигурами, макросами, формулами и т. Д.

2. Сравните два файла Excel с помощью онлайн-инструментов

Существуют веб-инструменты, предлагающие услуги сравнения Excel. Вы найдете эти инструменты полезными, если на вашем компьютере не установлен Excel. Этот Инструмент сравнения Excel от Aspose — хороший веб-инструмент для сравнения двух файлов Excel.

Загрузите первый (основной) файл Excel в первое поле, перетащите другой файл во второе поле и нажмите кнопку «Сравнить сейчас».

Если в файлах несколько листов, выберите листы, которые вы хотите сравнить, на вкладке «Листы». Если на обоих листах есть ячейки с разными значениями или содержимым, инструмент сравнения Aspose Excel выделит различия желтым цветом.

Ограничение этих веб-инструментов заключается в том, что они в основном выделяют разные значения. Они не могут выделить несоответствующие формулы, расчеты и т. Д.

3. Сравните два файла Excel с помощью функции «Сравнение электронных таблиц».

Spreadsheet Compare — надежное программное обеспечение для сравнения двух файлов или листов Excel. К сожалению, на данный момент он доступен только для устройств с Windows. Он поставляется как отдельная программа, а также встроен в Microsoft Excel, включенный в версии / пакеты Office: Office Professional Plus (2013 и 2016) или Microsoft 365.

Использование сравнения электронных таблиц в Excel

Если ваше приложение Excel является частью вышеупомянутых пакетов Office, вы можете получить доступ к инструменту сравнения электронных таблиц через надстройку «Запрос». Если в вашем приложении Excel нет вкладки «Запрос», вот как ее включить.

  1. Выберите Файл в строке меню.

  1. Выберите Параметры на боковой панели.

  1. Выберите «Надстройки» на боковой панели, выберите «Надстройка COM» в раскрывающемся меню «Управление» и выберите «Перейти».

  1. Установите флажок «Запросить» и нажмите «ОК».

Примечание. Если вы не найдете флажок «Запросить» на странице надстроек COM, ваша версия Excel или Office не поддерживает сравнение электронных таблиц. Или, возможно, администратор вашей организации отключил эту функцию. Установите версии Office с предварительно установленным средством сравнения электронных таблиц или обратитесь к администратору вашей организации.

  1. Откройте оба файла Excel, которые вы хотите сравнить, в отдельном окне, перейдите на вкладку «Запрос» в строке меню и выберите «Сравнить файлы».

  1. Excel автоматически добавит первый и второй файлы в диалоговые окна «Сравнить» и «С» соответственно. Выберите файлы подкачки, чтобы поменять местами первичный и вторичный файлы, или выберите «Сравнить», чтобы начать сравнение.

Это запустит сравнение электронных таблиц в новом окне, подчеркнув любое несоответствие в вашем наборе данных. Обычные ячейки с разными значениями будут выделены зеленым цветом. Ячейки с формулами имеют фиолетовый формат, а ячейки с макросом имеют бирюзовую заливку.

Выберите «Экспортировать результаты», чтобы сгенерировать и сохранить копию результатов на свой компьютер в виде документа Excel.

В отчете будут указаны листы и ссылки на ячейки с различными наборами данных, а также точные значения старых и новых данных.

Вы можете поделиться отчетом Excel с вашими коллегами, командой или другими людьми, совместно работающими над файлом.

Используйте сравнение электронных таблиц как отдельную программу

Если в вашей версии Excel или Office нет надстройки сравнения электронных таблиц, установите автономное программное обеспечение с веб-сайта разработчика. При установке установочного файла убедитесь, что вы установили флажок «Зарегистрировать и активировать надстройку в Excel».

После установки запустите «Сравнение электронных таблиц» и выполните следующие действия, чтобы использовать программу для сравнения документов Excel.

  1. Выберите «Сравнить файлы» на вкладке «Главная».

  1. Щелкните значок папки рядом с диалоговым окном «Сравнить (старые файлы)», чтобы добавить первый документ, который вы хотите сравнить, с инструментом. Добавьте второй файл в поле «К (новые файлы)» и нажмите «ОК», чтобы продолжить.

Сравнение электронных таблиц обработает файлы и выделит ячейки с разными значениями зеленым цветом.

Найди отличия

Инструмент сравнения «Просмотр бок о бок» — наиболее подходящий вариант для пользователей Office для дома или студентов. Если вы используете Excel для Microsoft 365 или Office Professional Plus (2013 или 2016), в вашем распоряжении встроенный инструмент «Сравнение электронных таблиц». Но если вы не используете Excel на своем компьютере, веб-инструменты сравнения Excel выполнят свою работу. Это действительно так просто.

Понравилась статья? Поделить с друзьями:
  • How to compare two columns in excel
  • How to come up with a random word
  • How to come up with a new word
  • How to combine or and if in excel
  • How to column lock in excel