Can AI work with spreadsheet data, and when should you use code instead?

Updated · 5 min read

What AI does well with a spreadsheet

Language models are useful around a spreadsheet. They can explain what a sheet is for, describe its columns, point out unusual rows, suggest how to organise a messy export and draft a formula from a plain description. They can also clean text fields, such as standardising company names, splitting full addresses into parts or translating column labels into another language.

These tasks depend on understanding language and recognising patterns, which is where these models are strong. The output still needs checking, but the check is quick because you can see each change before you accept it.

Where models make arithmetic mistakes

A language model predicts text. It does not calculate by running a procedure, so when you ask it to add up a long column it may return a total that looks right and is wrong. The risk grows with table size, with many small amounts, with mixed currencies, and with rounding rules that must be applied row by row. Asking the model to check its own work often produces a second confident answer, not a verified one.

  • Totals and averages over long columns.
  • Lookups that match on names with spelling variations or duplicate entries.
  • Currency conversion, tax and discounts applied across many rows.
  • Percentages and running balances, where one early error carries forward through every later row.

Use code to run the numbers

For anything that must be exact, have the model write code, such as a short Python script, and run that code against the file. The script performs the arithmetic, and the result is repeatable. Ask for the code to be shown, so a finance or operations lead can read exactly what it did.

Then reconcile. Compare the script’s totals with a figure you already trust, such as the total in the source system or a subtotal in the original file. A mismatch means either the logic or the input is wrong, and the result should not be used until you know which.

Clean and reshape data without losing the original

Before any cleaning, save an untouched copy of the file and note which version you started from. Work on a copy, and record each change as a step you can repeat. Common problems include dates stored as text in mixed formats, numbers containing thousands separators, merged header cells, duplicate rows and trailing spaces that break lookups.

Check the type of each column before and after cleaning. A column that should hold numbers but contains text will quietly break formulas in Excel and Google Sheets, with no warning at all.

When the spreadsheet should become an app

A spreadsheet suits one person or a small team working on a stable process. It becomes fragile when many people edit it at once, when different people need different permissions, when every change must be logged, or when the same figures must feed a CRM, an invoice or a report automatically. Copying formulas between files is another warning sign, because every copy drifts a little further from the original.

  • Several editors overwriting each other’s rows.
  • Records that need an approval step or an audit trail.
  • Data that must arrive from another system rather than being typed by hand.
  • Rules that keep changing and now live in long nested formulas nobody on the team can read.

A practical way to move forward

Move the data into a database with a simple form or app, and let the AI work on the records through defined queries and checks. The spreadsheet can remain as an export for analysis. Keep the original file for a while after the move, and reconcile the first few reports against it so the team trusts the new system before the old sheet is retired.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei that builds AI agents, AI CRM systems and internal tools. We build on Claude and on OpenAI models, and we choose the model for each task on cost, speed, quality and where the data must stay. When a spreadsheet has outgrown its sheet, we can turn it into a shared system with permissions, logs and an AI assistant that works on the records.

A project with us begins with a scope step of about one week at a fixed price, which produces a written plan, a clickable prototype and a firm quote. The build then runs in weekly releases of working software over two to four weeks, and a monthly run plan keeps the system and its data checks up to date.

Questions

Can I paste my spreadsheet into an AI chat?
You can, when the data is not sensitive and your provider’s terms allow it. Personal data, client names and financial records should stay in tools your organisation has approved. Remove identifiers where you can, and check the provider’s current data terms before uploading any file.
Will AI write spreadsheet formulas correctly?
Often, for common functions such as lookups, conditional sums and date calculations. Test each formula on a few rows where you already know the answer, look at how it handles blanks and errors, and avoid formulas nobody on the team can read. For complex logic, a short script is usually easier to check and to maintain.
When is a script better than a formula?
For repeatable, multi-step calculations on large or messy data, a short script is clearer, easier to test and easier to rerun. For a single column of simple arithmetic, a formula is fine. The right choice depends on who will maintain the work after you have finished it.
Should I use Google Sheets or Excel for AI work?
Either can hold the data, and the process matters more than the tool. Keep the original file, log changes and use the same checks whichever program you use. Each platform has its own add-ins and connectors, so check their current documentation before relying on one.
How do I know when a spreadsheet has grown too big?
Look for the signs: several people editing at once, manual copying between files, approvals handled by email and reports that break when a column moves. When these appear, the spreadsheet is carrying work that a database and a simple app would handle more reliably.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutCan AI work with spreadsheet data, and when should you use code instead?