An XLSX can store a formula and an outdated answer
A script extracts 19 from a spreadsheet cell. The cell’s formula adds two inputs, 18 and 7. Before changing the workbook or alleging that someone falsified its total, identify which value the script read: an XLSX cell can retain a calculated result separately from its formula.
That saved result is a cache—a value available without evaluating the formula again. It can be useful for reading a workbook, but its presence does not establish that it matches the current inputs. Preserve the received file before allowing an application to recalculate and save it.

Keep three different observations
For the disputed cell, record the formula text, the saved result and the result of a separately described calculation. Microsoft explains that SpreadsheetML stores formula text in an <f> element and its cached result in <v>. A cache can also be absent. See Working with formulas.
This deliberately inconsistent teaching example has two input cells and one total:
| Cell | Content being examined | Value |
|---|---|---|
| A1 | Numeric input | 18 |
| A2 | Numeric input | 7 |
| B1 | Stored formula | SUM(A1:A2) |
| B1 | Cached result | 19 |
| B1 | Independent addition of these two inputs | 25 |
The relevant XML cell fragment is:
<c r="B1">
<f>SUM(A1:A2)</f>
<v>19</v>
</c>
We constructed and parsed a small worksheet XML fragment locally, then checked that its formula and cache remained distinct and that 18 + 7 equals 25. This was not a received workbook, an Excel interface test or a general formula evaluator. We intentionally inserted the mismatch to demonstrate why quoting a saved value and verifying a calculation are different operations.
The discrepancy alone does not explain its history. A stale calculation is one possibility; a file-producing program could also have written inconsistent content. The fragment does not tell us who made the change or when.
Check what your reader actually returns
A spreadsheet-reading library need not include a calculation engine. In openpyxl, data_only=False exposes formulas, while data_only=True reads the stored result where one exists. Loading the same cell with the second setting does not ask the library to calculate it. The loading tutorial documents the option; its formula reference states that openpyxl does not evaluate formulas.
For a read-only comparison, inspect two views of the same preserved copy and the same sheet and cell address. Keep the library version and loading options in your notes. If a result is missing, record it as missing; do not replace it with zero. Do not save over the source merely to compare the views.
Reading a screenshot is different again. It can establish what was displayed in that capture, provided its provenance is adequate. It cannot reveal a hidden formula or cached XML value. Ask for the original workbook before making a claim about either.
Recalculate a copy only after recording the received state
Keep the original download and a SHA-256 identifier. Record the disputed cell, its dependencies, the extraction result and the available view before recalculation. Then use a separate working copy if a fresh result is needed.
Microsoft’s recalculation guidance distinguishes automatic and manual calculation. It also notes that changing calculation options in desktop Excel affects all open workbooks. Use a controlled working session and record the application, version, mode and calculation action rather than casually changing settings in a session containing unrelated work.
A recalculated result is meaningful only for the inputs and dependencies actually used. External workbooks, unavailable functions, data connections or time-dependent formulas can complicate the comparison. Separate a calculation from refreshing outside data. Do not enable macros or approve external-content prompts simply to make an unexplained number change; obtain the required inputs and a documented review process.
For the tiny SUM example, the independent check is straightforward. In a larger workbook, trace the exact range and formula meaning first. If the apparent discrepancy concerns which rows are included, the filtered-total guide addresses that separate problem.
Report both the file’s state and your check
A useful note reads: “In the examined file, B1 stores SUM(A1:A2) with cached value 19. The stated numeric inputs are 18 and 7; their independent sum is 25. The cause and time of the mismatch are unresolved.” Label the example as synthetic if using it for training.
For an actual case, include source and working-copy filenames, hashes, sheet and cell, formula, saved result, input references, calculation method and unresolved dependencies. If you save a recalculated derivative, retain it alongside the received version. A corrected total should not erase the evidence of what the original file contained.
By OSINT Jet · Primary sources reviewed 15 November 2026.
