Skip to main content
How-To · 6 min read

How to Use a Pivot Table to Find the Difference Between Two Ledgers in Excel

Stack both ledgers into one table with a Source column. Build a pivot with party on rows, Source on columns and amount as the value, then add a difference. Every party where the two sources disagree stands out at once, and you can drill down to the invoices behind it.

Terra Insight
Terra Insight Editorial Team Reconciliation Infrastructure

Content authored by practitioners with experience at Amazon India, Intuit QuickBooks, and the Tata Group. Meet the team →

Published 14 October 2026
Domain expertise
TDS Reconciliation GST Input Credit Platform Settlements NACH Batch Matching Bank Reconciliation Form 26AS Matching ERP Integrations Enterprise Finance Ops
Knowledge Card
Problem

Books and vendor statements for several suppliers disagree, and checking each supplier separately takes too long.

How It's Resolved

Stack both sources into one table with a Source column, pivot party against source with a difference, filter to non-zero differences, and drill down to the documents behind each one.

Configuration

One table with party, date, document number, amount and source columns, formatted as an Excel Table, with a pivot table using Show Values As Difference From.

Output

A short list of parties whose balances differ, with the documents behind each difference one double-click away.

Stack both ledgers into one table with a column that says where each row came from. Build a pivot table with party on rows, source on columns and amount as the value. Add a difference. Every party where the two sources disagree stands out at once, and a double-click shows you the invoices behind the number.

Everything here works in Excel 2010 and later, including Microsoft 365.

How do I combine the books and the statements into one sheet?

Use five columns, the same for both sources:

ColumnBooks row exampleStatement row example
PartyArun BrothersArun Brothers
Date28 Sep 202628 Sep 2026
Document no.AB/312AB/312
Amount (payable, positive)₹1,40,000₹1,40,000
SourceBooksStatement

Steps:

  1. Paste your creditors’ ledger lines (open items or closing balances) under the headers. Fill Source with “Books”.
  2. Paste each vendor’s statement lines below them. Fill Source with “Statement”.
  3. Make sure party names are spelt the same in both. A vendor called “Arun Bros.” in one and “Arun Brothers” in the other becomes two rows in the pivot.
  4. Select the data and press Ctrl+T to make it an Excel Table.

Keep the sign the same in both sources: amount payable as a positive number.

How do I build the pivot?

  1. Click in the table, then Insert, PivotTable, New Worksheet.
  2. Drag Party to Rows, Source to Columns, Amount to Values.
  3. Right-click a value, Show Values As, Difference From. Base field: Source. Base item: Books.

The Statement column now shows how much higher or lower each vendor’s figure is than yours. The Books column shows blank, because it is the base.

If you prefer to see both totals and a difference, leave the values as Sum and add a formula next to the pivot, such as =C5-B5, copied down.

Worked example: six vendors, ₹47,800 apart

Your books show ₹18,64,500 payable to six vendors at 30 September. Their statements total ₹19,12,300. The gap is ₹47,800.

The pivot, with a difference column added:

VendorBooksStatementDifference
Arun Brothers₹4,20,000₹4,50,000₹30,000
Kiran Steel₹3,10,000₹3,22,800₹12,800
Sai Packaging₹2,95,000₹3,00,000₹5,000
Metro Logistics₹3,60,000₹3,60,000₹0
Delta Chemicals₹2,04,500₹2,04,500₹0
Vyas Traders₹2,75,000₹2,75,000₹0
Total₹18,64,500₹19,12,300₹47,800

Three vendors explain the whole gap. Double-clicking each difference shows why:

  • Arun Brothers, ₹30,000: invoice AB/318 dated 29 September is on the statement but not in your books. You have not received it yet.
  • Kiran Steel, ₹12,800: you paid by NEFT on 30 September and booked it; the vendor credited it on 1 October. Payment in transit.
  • Sai Packaging, ₹5,000: you raised a debit note for damaged cartons; the vendor has not booked it yet.

Check: ₹30,000 plus ₹12,800 is ₹42,800. Add ₹5,000 for ₹47,800, which is the full gap.

How do I show only the differing rows and drill down?

Only differences: pivot value filters test the summed amounts, not a Show Values As difference, so filter outside the pivot. Apply a conditional-formatting rule such as =D5<>0 to the formula difference column next to the pivot, and three vendors stand out. Or copy the pivot, paste it as values, and filter the difference column for anything other than 0.

Drill down: double-click a number in the pivot, such as Arun Brothers’ Statement total. Excel opens a new sheet listing every row behind it. Compare it with the Books rows for the same vendor to find the missing document.

Next month: paste the new data into the same Table, then right-click the pivot and choose Refresh. Because the pivot reads from the Table, new rows are included.

A pivot finds differences but does not track who resolved them. Next, read manual detection techniques for reconciliation, then when manual reconciliation tops out. For one vendor in detail, see how to reconcile a vendor’s statement with your ledger in Excel. Related: account reconciliation software for India.

Primary reference: ICAI (The Institute of Chartered Accountants of India) — whose auditing standards on external confirmations explain why supplier balances agreed with the supplier's own records are useful audit evidence..

Frequently Asked Questions

Why stack both ledgers instead of putting them side by side?
A pivot table summarises one table. Stacking both ledgers with a Source column lets one pivot total each party for each source and compare them.
How do I show the difference inside the pivot?
Put Source in Columns, then in Value Field Settings use Show Values As, Difference From, with Source as the base field and Books as the base item. Or add a plain formula column next to the pivot.
How do I see the invoices behind a difference?
Double-click the pivot value. Excel opens a new sheet with every source row behind that number.
Which Excel versions support this?
Pivot tables, Show Values As and double-click drill-down work in Excel 2010 and later, including Microsoft 365.
Should the vendor's balances be positive or negative?
Enter both sources with the same sign convention, for example the amount payable as a positive number in each, so the difference is a simple subtraction.

See how TransactIG handles reconciliation for your industry

Configuration takes 2–4 weeks. No code development required. ISO 27001:2022 certified.