The interview problem

Practice prompt

A customer's AI assistant gives the wrong total from an uploaded spreadsheet. The workbook displays the right answer on their laptop. Investigate formulas, cached values and external links.

Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.

1. Scope and assumptions

Assume XLSX input, authorized files and no requirement to execute arbitrary macros. Reading a formula string and evaluating that formula are different capabilities.

2. Worked approach

original workbook
  → formula/cache audit
  → approved recalculation or values contract
  → typed extraction

Preserve the original file and inspect a minimal disputed cell with its formula, cached value, number format and dependencies. Record calculation mode and external-link presence. Agree whether the ingestion contract accepts values-only exports or requires recalculation in an approved spreadsheet engine.

Produce a typed extraction with sheet/cell provenance and an explicit unresolved state for formulas lacking trustworthy results. Do not let an LLM guess an arithmetic result from a stale cache. If recalculation is required, isolate execution and disable unapproved external data access. Version the calculated artifact and compare selected control totals with the customer.

3. Calculate the example

Cells A1 and A2 now contain 10 and 20, while B1 holds formula SUM(A1:A2) and cached value 25 from an earlier edit. The correct current sum is 30; consuming 25 creates a 5-unit error, or 16.67% relative to 30. The parser can accurately read the file's cache and still deliver the wrong business value. A displayed currency format does not establish the underlying unit or recalculation freshness.

4. Failure cases and trade-offs

External references may be unavailable on the ingestion host. A library may preserve formulas without evaluating them. A values-only export removes useful lineage unless paired with the source version. Locale-specific display formatting can be mistaken for numeric content.

Values-only input is easier to make deterministic but shifts recalculation responsibility to the customer. Executing an approved engine supports more workbooks at higher security and reproducibility cost. Rejecting unsupported formulas is better than reporting guessed totals as verified.

5. Validate the result

Test changed inputs with stale caches, missing links, blank/error cells and date serials. Have the finance or operations owner sign off on control totals and supported workbook features; do not infer acceptance from successful file parsing.

6. Interview follow-ups and self-review

How would you detect a workbook recalculated against newer external data? What artifact is retained for reproduction?

Reward formula/cache distinction, source provenance, bounded execution and a numerical reconciliation.

Sources and related practice

Technical reference: openpyxl.readthedocs.io — Official formula support limits; customer diagnostic and arithmetic are original.

Exact publication/update date not established in this review. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.

Continue with Resolve unit and meaning mismatches in customer data; Assess whether customer data is ready for an AI pilot.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.