Sign inTry one task free
← All articles

Excel

Can AI Build an Excel Model With Live Formulas From a CSV?

Yes, if it writes formulas instead of pasting answers. Here's how a live model on a transaction CSV is laid out and how to test one before you trust it.

ByAhmed Elgazar7 min read

ON THIS PAGE

Yes, as long as the AI writes formulas into the workbook instead of typing in its answers. A CSV of transactions holds only values, so a working model keeps those rows on their own tab and builds every total with formulas like SUMIFS that point back at them. Click any total: if you see a typed number where a formula should be, you can't trace it or change it, and you shouldn't build on it.

Why doesn't the CSV already have formulas?

The format can't hold them. Microsoft's description of CSV says it "saves only the text and values as they are displayed in cells of the active worksheet." Your bank or card export is a flat list of dates, descriptions and amounts. Anything you want to know from it, like spend by month or by vendor, has to be built on top.

An AI tool can do that in one of two ways. It can work the answers out somewhere you can't see and paste the results into cells. Or it can write formulas into the workbook so Excel does the math from your rows. The first gives you something that looks like a spreadsheet. The second gives you a model you can work with: fix a row or move a vendor to another category, and every total that depends on it updates.

What does a live-formula model built from transactions look like?

The raw rows sit untouched on one tab, and everything else is a formula that reads them. This layout works for most bank and card exports (amount in column D, helper columns in F to H):

TabWhat's on itExample formula
DataThe CSV rows as exported, with no editsNone. This is the source.
Data, helper columnsMonth, cleaned vendor name, categoryMonth: =EOMONTH(A2,0). Category: =XLOOKUP(G2,Map!A:A,Map!B:B,"Unmapped")
MapEach vendor and the category it belongs toTyped in, then reviewed by you
SummaryTotals by category and month=SUMIFS(Data!D:D,Data!H:H,$A2,Data!F:F,B$1)
InputsAssumptions such as a growth rateForecast cells point here. Nothing is typed into a forecast cell.
ChecksTotals that must tie back to the export=SUM(Data!D:D)-SUM(Summary!B2:M20) should return 0

SUMIFS does most of the work. Microsoft describes it as a function that "adds all of its arguments that meet multiple criteria", which here means rows in this category and this month.

The Map tab is where AI saves the most time and where you should look hardest. Deciding that a vendor string belongs under software and not rent is a judgment call, and a formula will add up a wrong label as faithfully as a right one. The "Unmapped" fallback keeps gaps visible instead of dropping them, and the Checks tab tells you if any rows fell out of the summary.

How can you tell if an AI gave you live formulas or pasted values?

Test the file before you read its conclusions:

  1. Click a handful of totals at random. The formula bar should show a formula.
  2. Look inside formulas for typed numbers, like =SUM(D2:D40)+1450. A constant tucked into a formula is a hand-pasted answer.
  3. Change one transaction amount on the Data tab. The month and category totals that include it should change too.
  4. Move one vendor to a different category on the Map tab and watch its amount move on the Summary.
  5. Select a total and use Trace Precedents (on the Formulas tab, in the Formula Auditing group). The arrows should lead back to the Data tab.
  6. Confirm the check ties: the summary adds back to the export total, and the row count matches the CSV.
  7. Read every line in "Unmapped" or "Other" before you trust the category totals.

If steps 1 to 4 fail, you have a picture of a model. It may still be right, but you can't check it or reuse it next month.

What happened when a bank ran a risk model on manual spreadsheets?

PUBLIC CASE

This is a public case, not one of our engagements.

In 2012, JPMorgan Chase's Chief Investment Office lost money on a credit derivatives trading strategy. A Federal Reserve inspector general report later recorded that media reported "approximately $2 billion in losses due to a complex trading strategy involving credit derivatives" in May 2012, and that losses "surpassed $6 billion by the end of 2012."

The trading caused the losses. The spreadsheets matter because of the number that was supposed to warn people. The office used a new value-at-risk (VaR) model, a daily estimate of how much the portfolio could lose. At the Senate Permanent Subcommittee on Investigations hearing on March 15, 2013, the record included internal JPMorgan emails dated January 2012 about a draft of the bank's model review of a VaR method used for the office's credit books. They said: "The VaR computation is currently done off spreadsheets using a manual process. Thus it is error prone, and not easily scalable."

Senator Levin, the subcommittee's chairman, said the model's designer had to "manually enter the trading data every night using spreadsheets which had calculation and formula errors." He told the hearing that the OCC, the bank's regulator, had described the operational problems, including "the calculation and formula errors which lower these VaR results", as "shocking and absolutely unacceptable." Ina Drew, the former head of the office, testified that "the company's new VaR model was flawed and significantly understated the real risks in the book that were reported to me".

Your monthly spend model carries far smaller stakes, but it can fail the same way. Numbers someone types in by hand can only be checked by the person who typed them. Formulas that point at source rows can be checked by anyone with the file. If an AI tool works out your totals out of sight and pastes them into Excel, you're back to a manual process that happens to run faster.

Where does AI still get a transaction model wrong?

Mostly in the judgment calls that sit upstream of the formulas:

  • One vendor can show up under several descriptions, with processor prefixes or store numbers. Read the Map tab line by line.
  • Some exports show money out as negative numbers, others use separate debit and credit columns. A model that mixes the two can net spending against income by mistake.
  • A CSV stores dates as text, and day/month versus month/day can be read the wrong way round. If one month looks empty, check how the dates came in.
  • An export that starts mid-month makes that month look small next to the others.
  • Moving money between your own accounts looks like spending in a bank export, and it isn't.

None of these break a formula. Each one gives you a clean-looking total that's wrong, which is why you still read the Map tab and the check row yourself.

Can UnifiedAnalyst build this from your export?

Yes. Its home page lists "Excel models with live formulas" among what it produces and says "A 250,000-row CSV is normal input, not an edge case." Its how-it-works page says "Workbooks arrive with live formulas, so you can trace and change the model yourself", that "Every figure is calculated from your rows, never estimated", and that "Before you see anything, a second pass works the figures out on its own and reads every built file page by page." On the home page, "Every figure shows the rows it came from."

It works from the files you upload. The same how-it-works page says "There is no connection to your accounting system, your bank or your email, and there is no setting that would create one." The home page also says "You still review what comes back", so run the checklist above on its workbook the same way you would on anyone's.

To try it on your own export, see UnifiedAnalyst pricing.

Sources

  1. Microsoft Support, "Excel formatting and features that are not transferred to other file formats" (CSV entry): https://support.microsoft.com/en-us/office/excel-formatting-and-features-that-are-not-transferred-to-other-file-formats-8fdd91a3-792e-4aef-a5bb-46f603d0e585
  2. Microsoft Support, "SUMIFS function": https://support.microsoft.com/en-us/office/sumifs-function-c9e748f5-7ea7-455d-9406-611cebce642b
  3. Microsoft Support, "Display the relationships between formulas and cells" (Trace Precedents): https://support.microsoft.com/en-us/office/display-the-relationships-between-formulas-and-cells-a59bef2b-3701-46bf-8ff1-d3518771d507
  4. U.S. Senate, Permanent Subcommittee on Investigations, JPMorgan Chase Whale Trades: A Case History of Derivatives Risks and Abuses, hearing of March 15, 2013, S. Hrg. 113-96 (Senator Levin's questions, Ina Drew's testimony, Exhibit 44): https://www.govinfo.gov/content/pkg/CHRG-113shrg80222/html/CHRG-113shrg80222.htm
  5. Board of Governors of the Federal Reserve System, Office of Inspector General, Evaluation Report 2014-SR-B-017, October 17, 2014 (JPMorgan Chase CIO losses): https://oig.federalreserve.gov/reports/2015-0030_-_Document_To_Release.pdf
  6. UnifiedAnalyst, home page: https://unifiedanalyst.com/
  7. UnifiedAnalyst, How it works: https://unifiedanalyst.com/how-it-works

UnifiedAnalyst shows the rows behind every figure it reports.See pricing →

More articles