Skip to the content
Gridkiln
Menu
Guide contents

Guide The jobs it is for

“These two files should agree”

What you are trying to do#

A bank statement and a ledger, a marketplace payout and your order export, last month’s delivery and this month’s: two tables that should match, and don’t quite. You want to know which rows match, which differ and by how much, and what explains the gap between the two totals, without VLOOKUPs and colour-coding.

There are three tools, depending on the question:

Question Use
Which rows of A have a partner in B, and is the money the same? Reconcile two tables
What changed between two versions of the same table? Compare two tables
Add columns from B to A, and tell me what did not match Look up values, or Join tables

Reconcile two sources#

  1. Open both files. Drop them on the window, or ⌘O / Ctrl+O twice.
  2. Start a reconciliation. Type “Reconcile two tables” in the command palette (⌘K / Ctrl+K). In the dialog, choose the First table (A), such as the bank statement and the Second table (B), such as the ledger. Each shows its row and column count. Under Names, say what to call them (“Bank”, “Ledger”): the buckets are named after them.
  3. Set the matching rules.
    • Keys: the columns that identify a pair, such as a reference in each table. How key 1 matches can be exact, or is similar to with a score from which two values count as the same (85% by default), for when one side shortens or misspells it. A key can also match when one side’s value is written inside the other’s, such as an invoice number inside a payment’s description.
    • Amounts: the amount columns, and how far apart they may be and still match (agree within, for example 0.01). Beyond it a pair is “matched with a difference”. Tick the option when B records the opposite sign.
    • Dates: tick Compare dates too and say within how many days.
    • Groups that add up: let several rows on one side settle one row on the other, such as three payments that settle one invoice.
  4. Press Reconcile. The result opens with four buckets as tabs: Matched, Matched with a difference, Only in Bank and Only in Ledger. Every row of each table is in exactly one bucket, and the screen says so (“Every row is in exactly one bucket: 1,935 of 1,935 rows of Bank”).
  5. Read the totals bridge. It explains “why the two totals differ by 1,211.50”, line by line: the rows only in one table, the differences in matched pairs, and what is left. When the bridge closes, the last line reads “Unexplained 0.00”.
  6. Settle the leftovers. Select a suggestion in a bucket to see it in the side panel: the rows on each side, their sums and how the buckets would move (“Moves 3 rows from Only in Bank and 1 row from Only in Ledger to Matched”). Add a note and choose Accept match, Not a match or Skip. To pair rows yourself, tick them in the two “only in” buckets, choose a reason, add a note and choose Pair these rows.
  7. Export the workbook. Give a path in Save the workbook at and choose Export workbook: one sheet per bucket, plus the bridge. The toast offers Open it.
  8. Save the rules. The reconciliation is saved as a pipeline in the Library. Your decisions are listed under Remembered decisions and are “Applied again on every run”: next month, open it from the Library with the new files in place and your pairings and rules apply again by themselves.

Compare two tables#

Type “Compare two tables…” in the command palette and choose the two tables and, if they have one, a key. With a key, the result lists rows added, removed and changed, with each changed cell’s old and new value, and a summary by column (“Price changed in 214 rows”). You can set a tolerance for numbers and ignore case, spaces or chosen columns. Split view (⌘\ / Ctrl+) puts the two tables side by side; F8 and ⇧F8 / Shift+F8 move to the next and previous difference.

Look up and join#

Right-click a column such as sku and choose Add a step › Combine › Look up values, then choose the table to Look up in. Before you apply it, the lookup report says how many rows matched on each side (“14,807 of 15,002 rows matched (98.7%)”), lists the unmatched keys with the nearest candidate on the other side and why they differ (“letter O for zero”, “case”), and says when cleaning the key would help (“ignoring case adds 3 matches”). A lookup never adds rows: when a key matches several rows, a rule picks one or the step reports an error. Join tables is the general join; its report warns when rows would multiply: “18,420 rows from 15,002, because 1,206 keys repeat on the right”, with Show repeating keys and Use a lookup instead.

For names spelt differently, Join on similar text matches above a score you choose and asks you about the borderline pairs (Review borderline pairs…). Your answers are saved with the project and reused every time the step runs.

When it goes wrong#

You see What to do
Almost everything is “only in” one side The keys do not match as written. Use is similar to, or clean the key first (trim, change case) with the steps the report suggests
The bridge does not close: “Unexplained 12.40” The rules left a gap they cannot explain, which is a fault in the matching rules rather than your data. Choose Show on that line to see the rows, then adjust the tolerance or the group rule
Too many suggestions in “Matched with a difference” The amount tolerance is too loose, or dates are not compared. Tighten agree within, or tick Compare dates too
A lookup reports “Rows multiply” It is a join, not a lookup, or the lookup table has repeated keys. Choose Use a lookup instead, or remove duplicates from the lookup table first

See also#