AI spend analysis by vendor and cost centre: the data it needs, a worked matrix and the ledger tie-out
Manoj Tutika · Published 27 January 2026 · Last checked 26 November 2026

Working on this yourself? Talk to Mark, our co-founder. He helps finance teams go AI-native, and accounting firms put the latest AI to work safely and predictably.
Spend analysis by vendor and cost centre answers two questions in one table. Who do we pay, and which part of the business causes the cost? An AI model is well suited to the mechanical half of that work. It groups thousands of transaction lines, spots a supplier that appears under three spellings and ranks what changed since last quarter. It can only do so on lines that carry a supplier, a general ledger account, a cost centre and a net amount, and the result is only worth reading once its total agrees with the ledger.
This guide gives you the field list, the cleaning steps, a worked matrix with a tie-out and the questions that are worth asking. It also sets out what ChatGPT, Claude, Copilot and Gemini document for this kind of work, and where a general assistant stops. If you would rather see the analysis run on a connected ledger, Mark Holleman, co-founder of Thred, shows it in a demo.
What data does an AI need to analyse spend by vendor and cost centre?
It needs transaction lines, one row per line of a bill, card charge, expense claim or journal, with the fields below. A profit and loss by cost centre is not enough, because it has already lost the supplier.
| Field | Why the analysis needs it | What goes wrong without it |
|---|---|---|
| Posting date and period | To compare months and quarters | An annual bill looks like a spike |
| Document or entry number | So each figure can be traced to a document | Nobody can check an outlier |
| Supplier name and supplier code | The vendor dimension | Card charges and journals show no supplier at all |
| General ledger account | What kind of cost it is | Hosting and consultancy from one supplier are mixed |
| Cost centre or tracking option | Which part of the business incurred it | Lines fall into an unassigned bucket |
| Net amount in base currency | The cost that reaches the profit and loss | Totals include recoverable VAT and do not tie |
| VAT amount and VAT code | To separate recoverable from irrecoverable VAT | Partly exempt businesses understate cost |
| Line description | To split a supplier by product or contract | A price rise and a volume rise look the same |
Spend reaches the ledger through four doors, and a complete export includes all of them. These are supplier bills, bank and card payments booked without a bill, employee expense claims, and journals such as accruals and reclassifications. Most partial analyses stop at the first door.
How do you prepare the data before an AI looks at it?
You prepare it by fixing the seven things that make a spend table lie. An assistant can help with each of them, but you decide the rule.
- Merge supplier names. One supplier often appears under its legal name on bills and a shortened descriptor on card statements. Ask the model to propose groups and approve the list once, then reuse it.
- Keep the unassigned bucket visible. Lines without a cost centre get their own column. Spreading them silently over departments hides the coding problem you most need to see.
- Leave credit notes in as negatives, against the same supplier and cost centre as the bill they correct.
- Choose a basis for timing. Either you analyse cost as recognised in the profit and loss, with prepayments released month by month, or you analyse what was invoiced. Mixing the two is the commonest reason a quarter looks odd.
- Decide what to do with accrual journals. They belong in the cost, but they usually carry no supplier. Show them as a separate line so the total still ties.
- Use net amounts where you recover the VAT. If part of your VAT is irrecoverable, add that part to the cost.
- Convert to one currency at the rate booked in the ledger, not at today's rate.
What does a vendor by cost centre analysis look like?
It is a matrix with suppliers down the side, cost centres across the top and one total that agrees with the ledger. The example is made up, for a UK software company with about 60 staff, and covers overhead accounts for the third quarter. All amounts are net of VAT.
| Supplier | Sales | Engineering | Operations | Unassigned | Total |
|---|---|---|---|---|---|
| Cloud hosting provider | 0 | 41,200 | 0 | 0 | 41,200 |
| Recruitment agency | 12,000 | 24,000 | 0 | 0 | 36,000 |
| Office landlord | 0 | 0 | 27,000 | 0 | 27,000 |
| Travel agent | 9,400 | 3,100 | 2,300 | 4,800 | 19,600 |
| CRM vendor | 18,600 | 0 | 0 | 0 | 18,600 |
| 62 other suppliers | 14,300 | 22,700 | 31,900 | 6,700 | 75,600 |
| Total | 54,300 | 91,000 | 61,200 | 11,500 | 218,000 |
Before anyone reads a cause into that table, tie it out. The matrix total has to be rebuilt from the four doors, and then reconciled to the same accounts in the profit and loss.
| Component | Amount (£) |
|---|---|
| Supplier bills, net | 205,400 |
| Card and bank payments booked without a bill | 9,100 |
| Employee expense claims | 6,300 |
| Supplier credit notes | 2,800 deducted |
| Spend with a supplier, as in the matrix | 218,000 |
| Accrual journals with no supplier | 8,500 |
| Overhead accounts in the profit and loss for the quarter | 226,500 |
With the tie-out done, the table says several things at once. Five suppliers account for £142,400 of £218,000, which is 65.3% of supplier spend. Two suppliers, the recruitment agency and the travel agent, are paid by more than one cost centre, so nobody owns the whole relationship. And £11,500, or 5.3%, has no cost centre, of which £4,800 sits with one travel supplier. That last finding is a coding fix and not an insight, and it should be corrected in the ledger before the next run.
The matrix also raises the question it cannot answer. Suppose hosting was £33,500 in the second quarter. The rise to £41,200 is £7,700, or 23.0%. Whether that is more usage or a higher unit price is not in the cost centre data. It is on the invoice lines, and the method for reading those is in vendor spend, renewals and price creep.
Which questions should you ask an AI about spend?
Ask questions that have a number as the answer and a list of entries as proof. Open questions such as "where can we save money" produce generic advice.
| Question to ask | What a good answer contains | What you check |
|---|---|---|
| Which ten suppliers make up most of our spend this quarter? | A ranked list with amounts and share of total | The total equals the matrix total |
| Which suppliers are booked to more than one cost centre? | Supplier, cost centres and amount in each | Whether the split is deliberate or a coding habit |
| Which suppliers grew by more than 15% against last quarter? | Both periods, the difference and the percentage | Timing, such as an annual bill in one quarter |
| Which suppliers are new in the last three months? | First entry date, amount and who booked it | Whether a purchase approval exists |
| Which lines have no cost centre? | Entry numbers, supplier and amount | The proposed cost centre for each, before it is posted |
| Which cost centre is furthest above its budget, and which suppliers explain it? | Variance per cost centre and the top contributors | That budget and actuals use the same accounts |
The last question connects spend to plan. Setting up that comparison is covered in AI variance analysis for budget vs actual, and turning the answer into text for the pack is covered in AI financial commentary. The matrix itself fits on the cost page of the management report template.
What AI analytics tools let finance teams drill into spending by vendor and cost centre?
Four kinds of tool do this, and they differ in where the transaction lines come from. Reports inside the ledger read live data but offer fixed views. General AI assistants read an export and answer almost any question about it. Spend management and business intelligence products hold their own copy of the data and need a feed. Agents that work in the ledger read the entries directly and can also correct them.
What the four general assistants document for a job like this is set out below, as their help pages stood on 26 November 2026.
| Assistant | What the vendor documents | What that means for a spend export |
|---|---|---|
| ChatGPT | Accepts spreadsheets and CSV files up to approximately 50 MB depending on row size, and for some analysis tasks writes and runs Python code | A large file of transaction lines can go in at once, and you can read the code that built the matrix |
| Claude for Excel | Works in the open workbook, answers with cell-level citations, and can sort, filter and edit pivot tables | The pivot lives in your own workbook, so the tie-out stays next to the data |
| Copilot in Excel | Answers questions about your data and shows insights as charts, PivotTables, summaries, trends or outliers | Suits teams whose export already sits in a Microsoft 365 workbook |
| Gemini in Google Sheets | Lists data analysis, charts, formulas and pivot tables among the things it does in a sheet | Google notes that a generated chart does not update when the source data changes, so rebuild it after a new export |
In the ledger itself the cost centre goes by different names. Xero calls it a tracking category, and the limits you design around are in Xero tracking categories. A broader look at the two assistants finance teams compare most often is in Copilot vs Claude for finance.
What can a general assistant not do with your spend data?
It stops at the edge of the file, because a general assistant works without a live ledger, without posting rights and without an audit trail. For spend analysis that shows in three places.
- It analyses the export, not the books. Bills booked after the export are missing, and nothing tells you so.
- It can list the lines without a cost centre, but it cannot recode them. The fix is a manual job in the ledger, and until it is done the same lines turn up in every analysis.
- It keeps no record of which supplier names you merged or which rule you applied, unless you save that yourself and paste it in again next quarter.
So the analysis is quick the first time and no quicker the second. The cleaning has to be redone on each new export unless the coding is corrected at the source.
What does Thred do for spend analysis by vendor and cost centre?
Thred's agents read the entries in your ledger directly, so a spend question is answered from the current books and each figure comes with the entries behind it. Spend questions like these can be asked today of books kept in Exact Online, Xero or Moneybird, and if yours are kept elsewhere, talk to us about it.
You can ask the same questions as in the table above, for example "Show third quarter spend by supplier and cost centre, and list every line without a cost centre." The answer is built from the transaction lines in your ledger, not from a file someone exported last week. When an agent books a purchase entry in Exact Online, the coding of each line is in the proposal you see, so a missing or wrong choice is caught at the moment of booking. Until you set a rule, every write is put in front of you for approval before it happens. Once you release a kind of work, the agent does it on its own within the limits of your rule, and each step is logged.
The decisions stay with your team. Which supplier to renegotiate, which cost centre owns a shared contract and what to cut are not things an agent decides. To see the matrix built on your own ledger, book a demo.
Want to see your own spend by supplier and cost centre?
In a demo Mark Holleman, co-founder of Thred, connects a ledger and asks the questions from this guide, including the list of uncoded lines. Book a demo. If you first want the cost of the AI tools themselves under control, read budgeting AI and LLM costs, or see how Thred works for finance teams.
Frequently asked questions
What AI analytics tools let finance teams drill into spending by vendor and cost center?
There are four kinds. Reports in the ledger itself, general assistants such as ChatGPT, Claude, Copilot and Gemini working on an export, spend management and business intelligence products fed with a copy of the data, and agents that read the ledger directly. The choice depends on where your transaction lines live and who keeps the coding right.
Can ChatGPT analyse spend from an Excel or CSV export?
Yes. OpenAI documents that ChatGPT accepts spreadsheets and CSV files up to approximately 50 MB and can write and run Python code for analysis. Give it transaction lines with supplier, account, cost centre and net amount, and check the total against your ledger before you use any finding.
What do you do with spend that has no cost centre?
Show it as its own column, list the lines with their entry numbers, and correct the coding in the ledger. Do not spread it over departments in the spreadsheet. A growing unassigned total means the booking process needs a required field or a default.
Should spend analysis use amounts with or without VAT?
Use net amounts when you recover the VAT, because that is the cost in your profit and loss. If part of your input VAT is irrecoverable, add that part to the cost. The check is simple. The analysis total must equal the expense accounts in the ledger.
Why does my spend analysis not match the profit and loss?
The usual causes are journals without a supplier, such as accruals, card payments booked without a bill, credit notes left out, VAT included in the amounts, and prepayments analysed on invoice date instead of when the cost is recognised. Rebuild the total component by component until it ties.
Does Thred analyse spend by supplier and cost centre in my ledger?
Yes, for books kept in Exact Online, Xero or Moneybird. You ask in plain language for spend by supplier and cost centre, and the reply is built from your ledger entries, which are listed with it. Where Thred books purchase entries, the coding is shown to you for approval first unless you have set a rule.
Sources
- OpenAI Help Center, File uploads FAQ (checked on 26 November 2026)
- OpenAI Help Center, Data analysis with ChatGPT (checked on 26 November 2026)
- Anthropic, Use Claude for Excel (checked on 26 November 2026)
- Microsoft Support, Get started with Copilot in Excel (checked on 26 November 2026)
- Google Docs Editors Help, Collaborate with Gemini in Google Sheets (checked on 26 November 2026)
- Xero Developer, Accounting API Tracking Categories (checked on 26 November 2026)
Read next
- Cost centre (cost center): definition and example
- Know what you pay your vendors: renewals, price creep and spend visibility
- Xero tracking categories: set them up, assign them and report by department or location
- Copilot vs Claude for finance: a factual comparison for finance teams, and when each is better
- AI financial commentary: revenue, cost and margin narratives where every number traces to its source
- Budgeting AI and LLM costs: forecast usage-based spend and book seats, credits, accruals and VAT
Where Thred comes in
Finance agents running on top of your existing ledger. You set the rules, approve the work and handle the exceptions. No migration.
