Skip to content
itsgkv

Claude Code for Finance: Consolidate Trial Balances

Claude Code turned five messy files from three entities (India, UK, US) into one consolidated USD workbook in 12 plain-English commands. Free kit included.

GK
Gaurav K Verma

14 min read

Cover: a cracked Alteryx gravestone hit by the Claude logo, with GKV beside it and the word CRUSHED

Claude Code can take month-end files from several entities, in different formats and currencies, and turn them into one consolidated workbook in US dollars. I tested it on five messy files from a made-up group with three companies (India, UK and US). It took 12 plain-English commands, no code and no drag-and-drop boxes. I'm GKV, and this post is the exact run, with every command.

General education, not financial advice. All data here is made up (a fictional group called Northwind). Tested on November 12, 2026 with Claude Code in the Claude desktop app, Sonnet 5.5, High effort, on the $20-a-month Claude plan. Tools change fast, so check what your plan and version do today.

Month-end close, and the files arrive in different shapes: one entity sends a PDF, another sends a CSV export, the group mapping sits in an Excel workbook, and the exchange rates live in a separate file. Every one of them has to become one consolidated pack in US dollars.

This is the written version of my video Can Claude Code Replace Alteryx? 5 Messy Files, One Workbook. Press play below, or read on and follow along with the files open.

The video this guide is based on.

Free kit: download the Claude Code trial balance kit (zip). It has the five input files, all 12 commands, the checks list and the saved skill.

How do you consolidate trial balances with Claude Code?

To consolidate trial balances with Claude Code, open the folder with your files and send 12 plain-English commands, one at a time. Claude cleans the data, checks each trial balance, maps the accounts, translates to US dollars, eliminates intercompany and builds an Excel pack. You read each answer and approve every decision.

Here is the whole flow at a glance:

#CommandWhat you get
1Understand the filesEntity, currency, period and mess in each file, nothing changed
2Turn the data into one tableOne clean table of all three trial balances
3Check that every trial balance balancesDifferences found, nothing fixed yet
4Fix the UK and US errorsBoth causes fixed, change logged, balance check re-run
5Map every account to one chartExact matches, plus suggestions that wait for your approval
6Translate to USDClosing, average and earlier rates applied, translation reserve shown
7Find the intercompanyUK and India balances and management fee, difference shown
8Eliminate both sidesElimination journal, difference posted to FX gain or loss
9Build the statementsIncome statement, balance sheet and cash flow
10Put it all in an Excel fileOne formula-based workbook with Checks and Log sheets
11Save the flow as a skillA reusable month-end-consolidation skill
12Run it on new filesThe same flow in a new chat

What files did I start with?

Northwind is a made-up group with three companies: Northwind India (INR), Northwind UK (GBP) and Northwind US (USD). The folder holds five files:

FileWhat it isWhat is messy
NWIN_TB_FY2025.pdfIndia trial balanceIndian number grouping (2,00,00,000.00), Dr/Cr suffixes instead of signs, group headings and "Total" rows mixed in with the accounts, two pages with a repeated header
NWUK_TB_FY2025.csvUK trial balanceA CSV export with its own layout
NWUS_TB_FY2025.csvUS trial balanceA CSV export in a different layout
coa_mapping.xlsxMapping to the group chart of accountsSome accounts have no row
fx_rates.csvClosing and average ratesUsed for the translation

I introduced two errors into the UK and US files on purpose, to see whether Claude would catch them. The goal at the end: one Excel workbook in USD with the income statement, the balance sheet, the cash flow, a Checks sheet and a Log sheet.

The 12 commands for trial balance consolidation

Open the folder in Claude Code and send these one at a time. Read each answer before you send the next. That is the point: you stay in control, and Claude does not get to quietly "make things work".

Command 1: Understand the files

Look at the five files in the inputs folder. For each one, tell me which company it is, the currency, the period, and anything messy about the layout. Don't change anything yet.

Claude read all five files and changed nothing. It reported that two of the three trial balances did not balance as delivered and that the mapping file had gaps. The answer was long, so I replied with one line: tldr. Read the long version anyway when you do this on your own project.

Command 2: Turn the data into one table

Turn the three trial balances into one clean table: company, currency, account code, account name, and the balance at 31 December 2024 and 31 December 2025, debits positive and credits negative. Remove title rows, group headings, subtotals and grand totals. Fix any numbers stored as text.

This replaces the "clean the data" part of a workflow tool. The PDF was the hard one: plain text extraction scrambled its columns, so Claude re-read it in stream order. It proposed two fixes while building the table, and I replied Yes, apply both.

Command 3: Check that every trial balance balances

Now check that each trial balance balances in its own currency, for both years. If one doesn't, tell me by how much and which rows you think cause it. Don't fix anything yet. I want to see it first.

A clean-looking table is not a correct one. In this run the UK 2025 trial balance was out by 182,408.45 GBP and the US 2025 one by 1,837,187.52 USD. Claude found both and, as I had asked, fixed neither.

Command 4: Fix the UK and US errors

Good catch. The UK Office Rent row is a duplicate, remove one of them. The US Accrued Liabilities sign is wrong for 2025, it's a liability so it should be a credit. Fix both, log the change, and run the balance check again.

Adjust this to what Claude actually found. The two causes were the classic ones:

  • A difference of exactly one line's amount usually means a duplicate row. The UK Office Rent row was listed twice.
  • A difference of exactly twice one line usually means a flipped sign. The US Accrued Liabilities balance for 2025 was shown as a debit instead of a credit.

After the fix every entity balanced in its own currency for both years, and the change log recorded what changed and who approved it. Note the log's own caveat: a zero difference does not rule out offsetting errors, and in real life you would confirm both fixes with whoever prepared the files.

Command 5: Map every account to one chart

Map every account to the group chart of accounts using the mapping file. Exact matches first. For anything that doesn't match, suggest the group account and tell me how sure you are. Don't use a suggestion until I approve it.

Every account ended up mapped. Six had no exact match, so Claude suggested a group account for each, with its confidence, and waited. I replied Approve all 6. My rule: the person using the tool makes the decisions, and the AI proposes.

Command 6: Translate to USD

Convert everything to US dollars using the rates file. Balance sheet at the closing rate for each date, profit and loss at the 2025 average rate, share capital and opening retained earnings at the 2024 closing rate. Put the difference into a currency translation reserve and show me how you got that number.

This is where finance people check the method, not just the numbers: balance sheet at the closing rate, profit and loss at the average rate, equity at the earlier rate. Because different rates are used, the translated balance sheet does not add up on its own, and the difference goes to one line, the currency translation reserve. Make Claude show how it got that number, and check it.

Command 7: Find the intercompany

Find the intercompany balances and the management fee between the UK and India. Match them in dollars and show me any difference. Don't plug it.

The UK charges India a management fee, so the UK has income and a receivable while India has an expense and a payable. In dollars the two sides did not match exactly. "Don't plug it" matters: a plug hides the problem.

Command 8: Eliminate both sides

That difference is just exchange rates. Post it to FX gain or loss, then eliminate both sides of the intercompany.

The difference came from exchange rates, so it went to FX gain or loss and both sides of the intercompany were eliminated. Claude wrote an elimination journal you can read line by line.

Command 9: Build the financial statements

Build the group income statement for 2025, the balance sheet for both years, and the cash flow statement for 2025. Do the cash flow for each company in its own currency first, and each one has to land exactly on that company's cash balance with no plug. Then convert at the average rate and show the effect of exchange rates on cash as its own line.

The cash flow is the strictest test: each company's cash flow has to land exactly on its own cash, with no plug, before anything is converted. In my run everything matched to the cent.

Command 10: Put it all in an Excel file

Put it all in one Excel file called Northwind_Group_FY2025.xlsx: the three statements, a Checks sheet that shows every check passing or failing, and a Log sheet listing every change you made to my data and why.

The workbook is in USD, formula-based (so you can trace where each number comes from), and has the statements, a Checks sheet and a Log sheet. In my run no check failed.

Command 11: Save the flow as a skill

Now save this whole flow as a skill called month-end-consolidation, so next month I can drop in new files and just say "run the month-end consolidation". Keep my rules in it: the rates policy, stop and ask on anything unmapped, and never plug a difference.

A skill is a saved set of instructions Claude reads when you ask for a matching task. Mine keeps three rules: use the rates file only, stop and ask on anything unmapped, and never plug a difference. (I built a different skill in my Buffett stock analyzer post if you want to see another example.)

Command 12: Run it on new files in a new chat

Open a new chat in the same project and say month end consolidation, pointing it at the folder. The whole flow runs again, and it asks you before any decision. If a new file arrives in a different format, Claude can work out the change and update the skill.

What should you check before you trust the pack?

Do these nine checks on your own data, every time:

  1. Each trial balance balances in its own currency, both years.
  2. No title, heading, subtotal or grand total rows are left in the data.
  3. Every account is mapped, and every guessed mapping was approved by a person.
  4. The currency translation reserve is worked out two ways, and both agree.
  5. Intercompany balances match in the group currency, and any difference is explained, never plugged.
  6. Each company's cash flow, in its own currency, lands exactly on its own cash change.
  7. Group ending cash equals balance sheet cash.
  8. Intercompany movements are removed from operating cash flow.
  9. There is a log of every change to the source data, with who approved it.

Can Claude Code replace Alteryx for this job?

My view is that a tool like this can take over much of what a drag-and-connect workflow does for a job like this one. That is an opinion, not a head-to-head test, because I did not run Alteryx for this video.

Claude Code (this run)Alteryx Designer Desktop
Price per year$240 ($20-a-month Claude plan)About $4,950 to $5,995 per user (third-party listings)
How you build the flowPlain-English commands, one at a timeDrag-and-connect workflow
Tested in this postYes, on screenNo

Alteryx does not publish a list price. In the video I say $2,000 to $5,000 a year; third-party sources I checked on November 14, 2026 list Designer Desktop at about $4,950 to $5,995 per user per year (TrustRadius, ITQlick, Automation Atlas). Ask Alteryx for a quote for your own number.

What does this not prove?

  • The data is made up and small. Five files and three entities is a demonstration. It can scale to more files, but test it on your own before you rely on it.
  • I did not run Alteryx for this video. The comparison above is my opinion.
  • AI output can be wrong. I checked every number on screen, and you should check yours. Use a Claude plan your company has approved before you put real ledgers into it.

FAQ

Can Claude Code consolidate trial balances from different entities and currencies?

Yes, in this test it did. It combined three trial balances in INR, GBP and USD into one table, mapped the accounts, translated to US dollars and built the statements. The data set is small and made up, so test it on your own files before you rely on it.

Can Claude Code read a PDF trial balance?

In this run it did. The India file was a PDF with Indian number grouping, Dr/Cr suffixes and a repeated header. Plain text extraction scrambled the columns, so Claude re-read it in stream order and proposed two fixes, which I approved.

Do I need to know how to code to use Claude Code for finance work?

No. Every command in this post is plain English. Claude handled any code it needed, and I only read its answers, the Checks sheet and the Log sheet.

How much does Claude Code cost for this?

This run used the $20-a-month Claude plan, which is $240 a year. Check what your own plan and version include today, because tools change fast.

Is it safe to put real ledgers into Claude?

Use a Claude plan your company has approved before you put real ledgers into it. All the data in this post is made up, and AI output can be wrong, so check every number.

What happens when next month's files arrive in a different format?

Open a new chat in the same project and run the saved skill. It asks you before any decision, and if a new file has a different format, Claude can work out the change and update the skill.

Get the free kit, and what comes next

The free kit has the five input files, all 12 commands, the checks list and the saved skill: download the free kit (zip).

Next video: I use this same trial balance to build a full financial model. If you want it, comment FINANCIAL MODEL on the video on YouTube.

I run AI trainings for finance teams (my own paid service): Claude Code training for teams.

0

Comments