Skip to content
Sheetwrite

@sheetwrite/wasm

arrayFormulaIndicesfunction

Report a problem

On this page

The indices of the formulas whose result is an array, such as =SEQUENCE(3) or =A1:A3, which an XLSX file marks so that Excel spills them. It calls xlsxArrayFormulas once for the whole list. Each formula is read without a workbook, so a name never counts.

Declaration

function arrayFormulaIndices(
engine: Pick<typeof WasmExports, "xlsxArrayFormulas">,
formulas: readonly string[],
): Uint32Array

Parameters

engine: Pick<typeof WasmExports, "xlsxArrayFormulas">required

The loaded package, or an engine from createEngine.

formulas: readonly string[]required

The formulas in editor spelling.

Returns

Uint32Array

The input index of each array formula, ascending.

See also