NoxGrid Web API
    Preparing search index...

    Class NoxFormula

    Cell formula (Excel style; same syntax and functions as the desktop NoxFormula). References: A1 = first row, first column. Examples: =SUM(A1:A10), =B2*C2, =IF(D2>=60,"Pass","Fail").

    Implements

    • Computable
    Index
    root: Node
    • get isFullySupported(): boolean

      Whether the formula has no #REF!, unknown names, or missing functions.

      Returns boolean

    • get isSubtotal(): boolean

      Whether the formula uses the SUBTOTAL function.

      Returns boolean

    • get text(): string

      Formula text (without '=').

      Returns string

    • get functionNames(): string[]

      Names of the available functions.

      Returns string[]

    • Evaluates as if located in cell (row, col) of the sheet (result is cached).

      Parameters

      Returns FValue

    • Evaluates once without caching.

      Parameters

      Returns FValue

    • Shifts rows at or after index by count in references whose sheet name satisfies targets.

      Parameters

      • targets: (sheet: string | null) => boolean
      • index: number
      • count: number

      Returns boolean

    • Renames the sheet in references (null means the formula's own sheet).

      Parameters

      • map: (sheet: string) => string | null

      Returns boolean

    • Shifts relative references by dRow, dCol as if moved to another cell (copy, sort). Out-of-bounds references become #REF!.

      Parameters

      • dRow: number
      • dCol: number

      Returns boolean

    • Remaps column positions. map(old position) = new position, or -1 if removed.

      Parameters

      • targets: (sheet: string | null) => boolean
      • map: (c: number) => number

      Returns boolean

    • count rows starting at index were removed: references to them become #REF!, ranges shrink.

      Parameters

      • targets: (sheet: string | null) => boolean
      • index: number
      • count: number

      Returns boolean

    • Returns a string representation of an object.

      Returns string

    • Forces all formula results to be recalculated.

      Returns void

    • Parameters

      • name: string

      Returns boolean

    • Parses a formula (the leading "=" is optional). Throws FormulaSyntaxError on invalid syntax.

      Parameters

      • text: string

      Returns NoxFormula

    • Registers a custom function. Arguments are an array of evaluated values (ranges as 2D arrays, empty cells as null). Replaces an existing function with the same name. Built-in function names cannot be used.

      Parameters

      • name: string
      • fn: (args: unknown[]) => unknown

      Returns void

    • Parses a formula; returns null on invalid syntax.

      Parameters

      • text: string

      Returns NoxFormula | null

    • Parameters

      • name: string

      Returns boolean