Skip to content
Spreadsheet Engine

CellInterface

Common interface for cell-like objects (Cell and DefinedName). Defines the shared properties and methods between cells in sheets and defined names.

f: string | null;

formula, if any


ft?: "a" | "cse" | "plain" | null;

Formula type:

  • 'a': dynamic-array formula (auto-resizing spill)
  • 'cse': legacy Ctrl-Shift-Enter array formula (fixed output range)
  • 'plain': formula loaded from a file without an array mark (a plain <f> in XLSX, no F in JSF), outside Google Sheets mode; evaluated by Excel’s pre-dynamic-array rules
  • absent/null: the default type, which a newly entered formula has; evaluated by dynamic-array rules, except in Google Sheets mode, where it is a single-cell formula

id: string;

this cell’s address ID in A1 format (unprefixed), or defined name

get formulaZ(): string | null;

The cell’s formula-assigned number format, if present.

string | null


get sheetIndex(): number | null;

number | null


get v():
| string
| number
| boolean
| FormulaError
| Lambda
| Reference
| MultiAreaReference
| Matrix
| null;

| string | number | boolean | FormulaError | Lambda | Reference | MultiAreaReference | Matrix | null

set v(value): void;

MaybeBoxedFormulaValue

void


get valueBoxed(): MaybeBoxedFormulaValue;

The value of the cell. If the cell’s value has a formula-assigned number format, the value will be a boxed value containing that number format.

MaybeBoxedFormulaValue


get workbookKey(): number;

number


get z(): string | null;

The effective number format of the cell.

The effective number format is the user-assigned number format, if present. Otherwise, it is the formula-assigned number format.

string | null

clear(): void;

void


hasValueOrFormula(): boolean;

boolean


isSpillAnchor(): boolean;

boolean


isSpilled(): this is Cell & { _spill: { valid: true }; F: string; sheetIndex: number };

this is Cell & { _spill: { valid: true }; F: string; sheetIndex: number }


spillHeight(): number;

number


spillWidth(): number;

number


toString(): string;

string