Back to Writing

AI for reconciliations · Part 2

Reconciliation Part 2: Giving AI the Right Guardrails

The exact instruction blocks that tell Claude how to prepare a reconciliation - and why the gap between AI output and review-ready output is a prompt design problem.

David Merry4 min read

A slick AI-generated analysis can be dangerous. It might look great, but when you poke it and prod it, it falls apart.

My last post referenced a painful stat - for every 10 hours AI saves, nearly 4 are spent checking and fixing its work.

This post covers one of many ways to close that gap: dictating how the output is built, before Claude conjures up a single cell.

Here's the framework I recommend for reconciliations, but the same principle applies to most analyses.

  1. Control Sheet. Always include one. It must agree in total to the source files and link to the main reconciliation tab. This is the first thing to check. If the control sheet doesn't tie, nothing else matters.

  2. No Plugs. No hardcoded cells, unless the number comes from a source document. Tabs should be linked by formula.

  3. Modern Functions. Force Claude to use modern functions. For Microsoft 365, that means functions like XLOOKUP, FILTER and UNIQUE. Claude loves using SUMPRODUCT, like it's 1996. Tell it to use modern functions or it won't.

  4. Defined Structure: Don't let the AI improvise the layout. Define the tabs upfront: Control Sheet, Reconciliation, Matched, Unmatched A, Unmatched B.

I've found that setting these 'ground rules' early saves hours of rework. If you want to try this setup, I've attached specific instructions in the PDF below.

You can copy and paste the <excel_rules> and <reconciliation_instructions> directly into your Claude Personal Preferences or Projects.

These guardrails don't replace the review. You still need to review it properly. However, it closes the gap. And there's a difference between reviewing a structured, auditable workbook and reverse-engineering a mess.

In my next post I'll cover where to put this - Personal Preferences vs Projects.

What's the first thing you review on an AI-generated workbook?

Claude Reconciliation Instructions

Read the original instructions (PDF)

Block 1 - Excel Rules

<excel_rules>
For any Excel file I ask you to create, there should be no hardcoded cells unless the number comes from a source document or I have stated otherwise. Every other number should link by formula between tabs (formula links, not hyperlinks).

Use the simplest, latest Microsoft 365 functions - XLOOKUP, FILTER, UNIQUE - rather than older ones like SUMPRODUCT and VLOOKUP.
</excel_rules>

Block 2 - Reconciliation Instructions

<reconciliation_instructions>
When I ask for a reconciliation between two files, build it across these tabs:

1. Control Sheet: For each source, show line count and dollar amount split into three components - matched (exact), matched (with differences), and unmatched - plus a subtotal per source. All figures formula-driven, linking to the detail tabs (Matched Transactions, Unmatched Source A, Unmatched Source B). Include a check confirming components sum to each source total.

2. Reconciliation: Format = total per Source A / reconciling items / total per Source B. Show each reconciling item as a separate line: (a) amounts in Source A not in Source B, (b) net amount differences on matched transactions (Source A minus Source B), (c) amounts in Source B not in Source A. Each line links directly to the relevant detail tab. Include a check: Source A total plus all reconciling items minus Source B total must equal zero.

3. Matched Transactions: Transactions in both files. Differences column on every row (exact matches show zero, not blank).

4. Unmatched (Source A): Transactions in Source A only.

5. Unmatched (Source B): Transactions in Source B only.

Tab order: Control Sheet → Reconciliation → Matched Transactions → Unmatched (Source A) → Unmatched (Source B). Tab order reflects the summary-to-detail data flow: Control Sheet summarises Reconciliation, which summarises the detail tabs.

Review the final file to make sure that checks on the Control Totals and Reconciliation tabs are zero. If there is a difference, investigate and fix.
</reconciliation_instructions>