Lookup and reference functions
This set adds VLOOKUP, HLOOKUP, XLOOKUP, INDEX, MATCH, OFFSET, INDIRECT, ROW, COLUMN and CHOOSE. OFFSET and INDIRECT are dynamic references, so they are documented as volatile and can be disabled with an option.
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 price table in rows 1–5 and orders below it that use XLOOKUP and INDEX/MATCH.
Expected behavior
Changing a price updates the dependent orders. Missing keys return #N/A. When dynamic references are disabled, INDIRECT returns #NAME?.
Planned API surface
option: formulas.allowDynamicReferencesmethod: formulaEngine.getFunctionInfo(name)Acceptance criteria
- Exact and approximate match modes follow the documented semantics. (pending)
- INDIRECT and OFFSET register dynamic dependencies and are recalculated as volatile. (pending)
- INDEX that goes out of range returns #REF!. (pending)
- XLOOKUP if_not_found overrides #N/A. (pending)