WarUI

Named ranges and named expressions

GRID-A13-F15P2baselinePlanned

Developers or users can define names such as TaxRate or Q1Sales that refer to a cell, a range or a constant expression. Names make formulas readable, and they are scoped to the grid, or to a sheet when multi-sheet support is enabled.

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

Live example

A grid with a name manager panel that already defines TaxRate as 0.2 and Subtotal as D2:D9.

Expected behavior

Editing TaxRate recalculates every dependent cell. Deleting a name in use turns its dependents into #NAME?. Invalid names such as A1 or 1abc are rejected with a message.

Planned API surface

method: formulaEngine.addNamedExpression(name, expr, scope)method: formulaEngine.removeNamedExpression(name)method: formulaEngine.listNamedExpressions()event: namedExpressionChanged

Acceptance criteria

  • Names cannot collide with cell addresses or function names. (pending)
  • Names are case-insensitive and unique per scope. (pending)
  • Named expressions take part in the dependency graph. (pending)
  • Renaming a name optionally updates the formulas that reference it. (pending)