OfficeBench

OFFICE BENCH / FILES AND DATA

Compare two CSV exports by ID

If yesterday’s export sorts differently from today’s, comparing row 8 with row 8 can flag changes that never happened. Match the records by their stable ID instead.

Open Compare CSV Files

A worked order-export example

Use the fictional records below. Both exports contain the same three columns, but record SO-103 has moved to the first row in the new version.

Earlier export

order_id,status,amount
SO-101,paid,120.00
SO-102,pending,80.00
SO-103,paid,40.00

Newer export

order_id,status,amount
SO-103,paid,40.00
SO-102,paid,80.00
SO-104,paid,65.00

Select the earlier file first, the newer file second and order_id as the key.

Check the data before trusting the differences

  1. Use a unique key. An order number can repeat in a line-item export. Build a new column combining order number and line-item number before comparing those files.
  2. Keep IDs as text when needed. Do not let a spreadsheet strip leading zeros from identifiers before you save a CSV.
  3. Inspect changes to the headers. The tool compares columns shared by both files. A column that appears only in one export is reported separately, not treated as a value change for every record.
  4. Decide whether formatting matters. The comparison is literal. Values such as 80.0 and 80.00, or IDs with trailing spaces, can be flagged. Normalize a copy first if the difference is cosmetic.

When you need a reconciliation instead

A CSV comparison tells you what changed, not whether the financial totals tie. If the task is to account for a difference between two balances, use the sales reconciliation workbook and keep a note beside each unexplained item.

This example is fictional. Office Bench compares selected files in your browser instead of uploading them. A version comparison does not replace checking the original source.