Skip to content

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


optional ft: "a" | null;

Formula type, ‘a’ for array formula, absent for 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
| Matrix
| null;

| string | number | boolean | FormulaError | Lambda | Reference | 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


edit(cellData): void;

JSFCellExpanded

void


hasValue(): boolean;

boolean


hasValueOrFormula(): boolean;

boolean


isBlank(): boolean;

boolean

hasValueOrFormula


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