WarUI

Live formulas in XLSX totals

GRID-A20-F12P2beyond-baselinePlanned

Optionally writes spreadsheet formulas for subtotal and total cells instead of static numbers, so totals recompute after the recipient edits the data. Each aggregate maps to a supported formula. Formulas are written alongside cached values, and unsupported aggregates fall back to static values.

Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Grouped grid with sum, avg, min, max, count and one custom aggregate.

Expected behavior

In XLSX, total cells contain formulas referencing the correct ranges plus cached values. The custom aggregate cell contains a static value and a note in the export report.

Planned API surface

xlsx.totalsAsFormulascolumn.exportFormulaexportOptions.formulaFallback

Acceptance criteria

  • sum, avg, min, max and count map to range formulas over the correct child cells. (pending)
  • Each formula cell also stores the computed value as its cached result. (pending)
  • Unsupported aggregates export static values and are listed in the exportComplete report. (pending)
  • Formula cells are not altered by formula sanitization. (pending)
  • Formulas are never written for CSV, JSON or PDF. (pending)