The result text (a formula with its leading =) would have in cell,
without changing store. Referenced formulas give their current results;
nothing recalculates, and no history entry or event follows. Read-only
volatile functions (TODAY, NOW, OFFSET, INDIRECT, CELL, INFO) are
previewed; RAND, RANDBETWEEN and host functions are not called, and give
unsafe-function. A formula that reads more than 1,000,000 cells in typed
range scans or 50,000 cells one by one, or builds an array of more than
10,000 cells, or builds and reads more than about 1 MB of text in total,
gives cost-limit rather than a partial answer.
Throws a SheetwriteError with code invalid-argument when store is not
a SheetwriteStore or cell.row or cell.col is not a whole number from 0
to 4,294,967,295, and with code not-found when the workbook has no
cell.sheet.
Declaration
function previewFormula( text: string,Parameters
store: StorerequiredThe store that holds the workbook, such as grid.store.
cell: CellAddressrequiredThe cell the formula is previewed in; its references are relative to it.
text: stringrequiredThe formula to preview, starting with =.
Returns
The result of previewFormula.