Data reconciliation: explain why your records differ

Data reconciliation compares records that should agree, finds differences and records what explains them. Start by agreeing what you are comparing. Then match the relevant records, check the amounts and investigate what remains unexplained.

Start with a question the comparison can answer

A useful question names the records and cutoff: ‘For these four orders, which completed payments appear by our agreed cutoff, and which balances still need explaining?’ This separates checking money received from checking an order's status. The answer should tell someone what to investigate or correct next.

Agree, compare, explainA practical checking sequence. Save the rules and the evidence.
  1. Agree the basisChoose records, meanings, currency and cutoff.
  2. Match the recordsUse references; add related payments together.
  3. Explain differencesSeparate expected balances from issues needing investigation.

This guide uses four fictional orders and five fictional payment rows. Two orders match after their payments are added together. One has an unexplained $5 difference. Another is awaiting an $80 payment. A $40 payment belongs to an order outside the selected group. You will separate these situations rather than call every difference an error.

This is a check of the supplied records. A match does not prove that both exports contain everything they should. The UK Government Data Quality Framework treats consistency, completeness and accuracy as different concerns. Use reconciliation alongside checks that the files cover the work you intended to examine.

Make sure the two amounts mean the same thing

Write the meaning of each amount before subtracting one from the other. An order total, an invoice total and cash received describe different events. A dashboard showing work won this month can differ correctly from a report of payments received this month. If the questions differ, define a suitable comparison before investigating the gap.

Check what each amount includes: tax, delivery, discounts, fees, refunds and currency. An amount before a payment fee will differ from the amount deposited after that fee. Agree which values belong in this check. Keep different currencies separate unless you have an agreed conversion method, rate and date.

Timing matters too. A payment can arrive after an order was created, and an export can lag behind the activity it describes. For a selected group of orders, decide whether you need all related payments through a cutoff rather than payments made only during the orders' creation dates. Record the time zone when a boundary could change the included records.

In our example, the group is orders O101–O104. Amounts are USD, and both exports are fictional snapshots taken on November 7, 2026, at 5 p.m. Chicago time. Order totals and completed customer payments use the same amount basis; fees, refunds and currency conversion are outside this exercise. Order dates and payment dates still describe different events.

Save the originals and check the shape of each file

Download and unzip the sample pack. Open orders.csv and payments.csv in your spreadsheet application; expected-results.csv contains the worked answer. The README records the example rules. For your own work, keep the original exports unchanged and make separate working copies. Record the source report, filters, export time and person who obtained each file.

Count the rows and add the relevant amount column before filtering or rearranging anything. Our orders file contains four rows totaling $550. The payments file contains five rows totaling $505. These starting checks help you notice if a working copy loses a row or imports an amount incorrectly. They do not make the two whole-file totals directly comparable.

Keep identifiers as text when their format matters. Removing leading zeros from a reference can make different files harder to match. Check for missing references, duplicate identifiers and amounts stored as text. If a required amount is blank, leave it unresolved; replacing a missing value with zero changes the meaning of the evidence.

Choose the identifier that should be unique in each file. Here, order_id is unique in orders.csv, while payment_id is unique in payments.csv. An order reference may appear on several payment rows because a customer can pay in parts. Two rows with the same amount are not necessarily duplicates: check the payment references and the source before removing anything.

Add the payments for each order before comparing

Use the order reference to gather the completed payments belonging to each selected order. Then add their amounts. O102 has two different payment references, each for $100. Together they support its $200 order total. Comparing the order with only the first payment would create a false $100 discrepancy.

One order can have more than one paymentFictional USD amounts from the supplied files.
  • O101$120 order; $120 payment. Matches.
  • O102$200 order; $100 + $100 payments. Matches.
  • O103$150 order; $145 payment. Investigate $5.

For this five-row example, you can filter payments.csv by order_id and add the matching amounts by hand. For a larger file, use a summary table, often called a pivot table. Put order_id under Rows and payment_amount_usd under Values. Choose SUM and include only Completed payments. O102 should total $200 from its two payments. Keep the original rows available behind each total.

The official Excel PivotTable guide explains grouping and summarizing data. Excel may choose COUNT when it interprets amounts as text. COUNT would return 2 for O102, even if the result is formatted as currency. Confirm SUM is selected and check the underlying amounts. Google's pivot-table instructions cover the equivalent task in Sheets and require a header for every column.

Keep orders without matching payments in your comparison. Also list payments whose order reference is absent from the selected orders. A method that retains only matched references can make the result look tidy while hiding the very cases you need to examine.

Work through the four orders

In the table, difference means order total minus completed payments found in the supplied export. A positive amount is an uncovered balance in these files. Zero means the compared amounts agree. Neither label, by itself, decides whether a real customer owes money or whether a system needs correction.

The payment for O999 is outside the four selected orders. Keep its $40 in a separate list and check why that order is absent: the orders export might intentionally exclude it, or its coverage might need correction. Do not use the $40 to reduce another order's balance just because it is available in the payment file.

Scroll sideways to see all columns.

Order and statusOrder totalPayments foundDifference and meaning
O101 · Paid$120$120$0 · amounts match
O102 · Paid$200$200 across two payments$0 · amounts match
O103 · Paid$150$145$5 · unresolved
O104 · Awaiting payment$80$0$80 · expected open balance in this example

Separate expected balances from unexplained differences

The selected orders total $550. Their related completed payments total $465, leaving an $85 balance. The example's status rules explain $80: O104 is awaiting payment. The remaining $5 belongs to O103, which is marked Paid but has only $145 of payments against a $150 order.

An $85 balance is not automatically an $85 errorFictional results. The $40 outside the group is separate from the $85 balance.
$80 awaiting payment
Expected open balance for O104.
$5 unresolved
O103 needs investigation before closure.
$40 outside the group
O999 is tracked separately, not offset elsewhere.

Report the two findings separately: $80 awaiting payment and $5 unresolved. Calling the full $85 an error would misdescribe the example. Calling the whole comparison reconciled would hide the unresolved $5. A useful result preserves both the amount and its meaning.

The whole payment file totals $505 because it also contains the $40 for O999. Removing that outside-group payment leaves $465 for the selected orders. This is why you saved the original totals before filtering: you can explain where every row and dollar went, including records excluded from the main comparison.

Investigate the cause before changing a value

For O103, the evidence supports a narrow statement: the supplied payment rows total $5 less than an order marked Paid. Start with that finding. A missing payment, partial payment, wrong order amount or incorrect status are possible explanations. The arithmetic cannot tell you which explanation is correct.

Open the relevant source records or ask the person responsible to check them. Compare the order reference, payment reference, amount, date and status with the export. Check whether a later payment or a timing difference explains the gap. Save the evidence that resolves the question, rather than relying on a message that simply says it is fixed.

If a source needs correction, use its normal authorized process. Keep the original exports and record which value changed, who approved it and why. Editing a working spreadsheet to make the totals agree does not correct the source or establish that the new number is right.

Keep a short log of findings and decisions

Use the blank checking log to record the comparison's purpose, files, rules and findings. Duplicate the relevant category row, such as ‘Unexplained differences’, for each item. Name the responsible person, next check and evidence needed to close it. A practical entry could be ‘O103: $5 difference; finance checks the payment record; retain the confirming reference or corrected export.’

Use plain statuses such as Open, Waiting for confirmation and Resolved, with meanings your team agrees. Expected balances and excluded records still need a documented explanation, even when no correction is required. Avoid a single green ‘matched’ label that conceals these different outcomes.

After an authorized correction or a newly available export, repeat the comparison using the same rules. Check both the affected order and the overall counts and totals. Record the new result alongside the original finding so another person can follow what changed. Leave any remaining uncertainty open.

Handle the cases that break a simple comparison

The sample has no refunds, failed payments, duplicate payment identifiers or mixed currencies. Your files may contain all of them. Write how each belongs in the check before adding it to the main total. For example, an authorized refund may require a separate comparison of the refund record and its source order, rather than silently reducing a completed-payment figure.

Repeated identifiers need investigation before you sum them. A duplicate export row can overstate an amount, while two genuinely separate payments should both remain. Check the source's rules for identifiers and reversals. Do not remove a row solely because its customer name, date or amount resembles another row.

Agree any rounding rule before reviewing the results. Record the allowed difference and its reason, including currency precision. Our sample uses exact cents and no tolerance. Choosing a tolerance after seeing a discrepancy risks hiding a problem simply because it is small.

Make the next check repeatable

Keep the saved rules, original files, working comparison and findings together. Set a review rhythm that fits the task: a recurring report, a system change or a disputed figure may each justify a check. Assign someone to revisit unresolved items instead of assuming the next export will settle them.

When the same check repeats, automate stable matching and calculations first. Keep disputed matches, new statuses and unexplained changes available for review. A larger export still needs agreed definitions and source coverage. Start with a small sample someone understands before relying on an unattended result.

For your first exercise, reproduce the four order results, explain the $85 balance and locate the separate $40 payment. Then complete the log for one real question using information you are authorized to handle. If the field meanings are unclear, use the data dictionary guide to document them before comparing another set of totals.

Sources

Reviewed

  1. UK Government · The Government Data Quality Framework
  2. Microsoft · Create a PivotTable to analyze worksheet data
  3. Google · Create and use pivot tables

Let’s find your next step

Leave your email and tell us what you want to understand or improve. Start with analytics help, an app idea or both.

We’ll reply by email about your request. By submitting, you agree to our Terms and acknowledge our Privacy Policy.