Skip to content

sheetToFormulae

On this page

Convert a worksheet to an array of formula strings.

Each entry has the format "CellRef=Value" (e.g. "A1=42", "B2='Hello"). For array formulas, the ref is the full range (e.g. "A1:C3={formula}"). String values are prefixed with a single quote; booleans become TRUE/FALSE.

sheetToFormulae(ws: WorkSheet, opts?: Sheet2FormulaeOpts): string[]

Parameters

NameTypeRequiredDescription
wsWorkSheetYesThe worksheet to extract formulas from
optsSheet2FormulaeOptsNoOptional worksheet export budget

Returns

string[]

An array of "ref=value" strings representing every non-empty cell