All guides

Excel cached formula values: why an import reads old prices

Import reading old prices or blanks? Check the result each XLSX formula cell stores, recalculate a working copy, then test it with your real importer.

Method8 min read
A practical guide to reviewing your catalogues.
View sources
In this guide 8 sections

An XLSX formula cell can store two things: the formula and the last result calculated before the file was saved, its Excel cached value. An import that reads the file without calculating gets that stored result, so when a price arrives as an old number or a blank, recalculate a working copy, save it, and check what your real importer reads before you compare any catalogue edition.

The formula text, the stored result and a freshly calculated result are three different pieces of evidence. A blank stored result is not a zero or missing supplier price, and a stale one is not a price change, so settle the calculation state before the ERP supplier catalogue import checklist starts counting differences.

What is a cached formula value in an XLSX file?

In ECMA-376, Part 1, §18.3.1.40 describes the formula and §18.3.1.96 the cell value. For a formula cell, v can hold the last calculated value saved with the file. It can be absent, and its presence does not guarantee a current result.

Minimal synthetic XML fragment for a cell C2 whose formula is stored with a cached value of 90:

<c r="C2"><f>A2*(1-B2)</f><v>90</v></c>

The spreadsheet shows the result while the workbook is open and calculating. The file on disk is inert: whatever reads it later sees only what was written at the last save. A reader that retrieves the cache without calculating cannot establish whether that result matches today’s inputs. Conversely, a missing cache is not evidence that the business value was deliberately cleared.

Why does a catalogue import read old values or blanks?

The importer is usually right about the file; the file is out of step with its own inputs. Typical causes:

SituationWhat the importer readsWhy
Inputs changed by a program that does not calculatePrevious resultThe program rewrote the input cells but left the stored results untouched
Formula written by a program, never calculatedNo valueThe file carries the formula without any stored result
Workbook saved while automatic recalculation was offPrevious resultDependent cells were not recalculated before saving
Formula refers to another workbook that was not availablePrevious or error resultThe linked source could not be read at the last calculation
Formula depends on the current date or on external dataResult of the day it was savedThe same file gives another result on another day
Formula returns an empty textEmpty text, not a numberA business rule turned a condition into “nothing”

Some workbooks ask the opening application to recalculate everything on load. That request only helps an application that actually calculates; a reader that extracts stored values does not act on it.

FAB-DIS 3.0 shows why date-dependent formulas need care: in the mandatory B00 CARTOUCHE block, the FAB-DIS guide states that DATEDIT and DATEAPPLI cannot be earlier than today’s date. If such dates are computed from the current date rather than typed, the stored value depends on the day of the last save.

A stale cache can invent a price increase

In this synthetic example, A2 contains 120, B2 contains 0.10 and C2 holds =A2*(1-B2). The expected result is 108. If A2 previously held 100 and the stored result was not updated, C2’s cache can still contain 90.

What the reader obtainsResultWhat it establishes
Formula text=A2*(1-B2)Expression known, price not evaluated
Previous cache90Inconsistent with current inputs
Missing cacheNo resultCalculation needed, not a zero price
Controlled recalculation and save108Test case reconciles

Comparing 90 with 108 creates an apparent 20% increase (108 / 90 = 1.20) entirely caused by calculation state in this example. It establishes no manufacturer price increase. Read the other way, a fresh result in the old edition and a stale one in the new edition can just as easily hide a real increase.

How to create a stable comparison copy

  1. Archive the received workbook unchanged and work on a copy. Recording a SHA-256 hash of the original supplier file lets you prove later which edition you started from. Identify formula columns and external dependencies.
  2. Confirm the intended input values. Refreshing an external link blindly could replace data belonging to the received edition.
  3. Check that automatic recalculation is on, then recalculate the required formulas on the working copy with its calculation engine. Verify a known test result before saving and record the calculation context used: date, available linked files, settings.
  4. Inspect errors, save, then read the saved file with the actual import reader, not with the spreadsheet you just used.
  5. If the destination requires plain values, create a separate values-only copy after the check. Retain the original formula workbook as evidence.

After recalculating and saving the copy, read C2 with the actual importer. Expected: 108. Record the file, sheet, cell, inputs, prior state and the result the importer reads. If it still reads 90 or no value, hold the row and check whether the problem is in the reader, the calculation or a dependency.

Saving is a step in the process, not proof that every dependency was current. Record which source files were available and which updates were deliberately allowed.

Which formula results should block the import?

Hold required fields with missing results, calculation errors or unavailable dependencies. A formula returning an empty string also needs an explicit business rule; do not silently turn it into zero. How the destination treats that empty text, as a blank to keep or a value to clear, is the same decision as for blank fields in an ERP import.

Formula result in the copyDecision
Number that reconciles with a known test caseImport
No stored valueBlock: recalculate and read again
Error valueBlock: correct the input or the dependency
Empty text in a required price or quantityBlock until a business rule says blank, zero or “price on request”
Result that depends on the date of calculationImport only with the calculation date recorded

Check representative formula results in both editions. Date-dependent formulas and external data can produce new results even when the catalogue itself has not changed. Fix the calculation context and record when the calculation occurred. Differences introduced by that context belong in the preparation record, not in the supplier’s list of changes.

Checks before you compare two editions

  • Formula inventory: list the columns that contain formulas in each edition; a column that is typed in one edition and calculated in the other needs a closer look.
  • Cells without a stored result: in the sheet XML, a c element with an f child and no v child has no cached value.
  • Known test rows: recompute two or three rows by hand, as with C2 above, and compare them with what the importer reads.
  • Dates: if a date comes from a formula, also check its date system, because a 1,462-day shift from the 1904 date system looks like a calculation error.
  • Evidence: keep the received file, the recalculated copy and the values-only copy side by side, with the calculation date.

Then classify zero, missing and invalid prices separately and verify destination values through the ERP acceptance check. This prepares data for a sample difference report between two catalogue editions while keeping every reported value traceable to a known calculation state.

Limits of this method

This is a file preparation check. It does not assume that your ERP evaluates spreadsheet formulas, or that a catalogue comparison tool reproduces the workbook’s calculation engine. Recalculating on another computer, at another date or without the same linked files can give another result; that is why the context is recorded rather than assumed. When the supplier can provide plain values, ask for them: a value the manufacturer has fixed is better evidence than one you recalculated.

Frequently asked questions

Does an XLSX file store formula results?

Often, yes. A formula cell can hold the last calculated value next to the formula, but that value can be missing and is not guaranteed to match the current inputs.

Why does my import read a blank instead of the formula result?

The file probably has no stored result for that cell, which happens when a program wrote the formula without calculating it. Recalculate a working copy, save it and read it again with the same importer.

Does opening and saving the workbook update every cached value?

Only for the formulas the application actually recalculates with the inputs it can reach. Unavailable linked workbooks or switched-off recalculation can leave old results, so verify a known test cell after saving.

Should I replace formulas with values before a catalogue import?

If the destination needs plain values, yes, in a separate values-only copy made after the results reconcile. Keep the original formula workbook as evidence of where each value came from.

Is an empty formula result a zero price?

No. An empty result means the formula produced no value under its own rule, so it needs an explicit business decision before it becomes zero, blank or price on request.

Official sources & scope

This guide describes a working method. The examples are fictional; the official documentation remains the reference for the format rules. CatalogInspect is an independent service.

Back to guides & resources

Request access to CatalogInspect.

Enter your work email address to request access to CatalogInspect.

Submitting sends your request to BankStatementLab’s infrastructure for CatalogInspect. It does not create an account, trigger a payment or send an automatic email. Privacy.