modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface CellData

    Raw cell data as stored in the workbook data model.

    interface CellData {
        cellMetadata?: number | null;
        cellType: CellType;
        dynamicArray?: boolean | null;
        formula: string | null;
        formulaDel1?: boolean | null;
        formulaDel2?: boolean | null;
        formulaDt2d?: boolean | null;
        formulaDtr?: boolean | null;
        formulaDtr1?: boolean | null;
        formulaDtr2?: boolean | null;
        formulaR1?: string | null;
        formulaR2?: string | null;
        formulaRef?: string | null;
        formulaType?: string | null;
        inlineString?: string | null;
        reference: string;
        richText?: RichTextRun[];
        sharedIndex?: number | null;
        styleIndex: number | null;
        value: string | null;
    }
    Index
    cellMetadata?: number | null

    <c cm>: the 1-based index of the cell's record in the workbook's cell metadata (xl/metadata.xml). Excel gives a dynamic-array formula cm="1".

    cellType: CellType

    The data type of the cell value.

    dynamicArray?: boolean | null

    Whether this is a dynamic array formula: set on read whenever <c> carries cm; on write it yields cm="1" when cellMetadata is unset.

    Removed in 2.0; use CellData.cellMetadata.

    formula: string | null

    The formula string (without leading =), or null.

    formulaDel1?: boolean | null

    Data table input cell 1 was deleted (del1 on <f>).

    formulaDel2?: boolean | null

    Data table input cell 2 was deleted (del2 on <f>).

    formulaDt2d?: boolean | null

    Two-dimensional data table flag.

    formulaDtr?: boolean | null

    One-dimensional data table is a row (dtr on <f>): formulaR1 is a row input cell.

    formulaDtr1?: boolean | null

    Set on read when <f> carries del1="1" or the non-schema dtr1="1"; on write it yields del1="1" when formulaDel1 is unset.

    Removed in 2.0; use CellData.formulaDel1.

    formulaDtr2?: boolean | null

    Set on read when <f> carries del2="1" or the non-schema dtr2="1"; on write it yields del2="1" when formulaDel2 is unset.

    Removed in 2.0; use CellData.formulaDel2.

    formulaR1?: string | null

    First input cell of a data table (r1 on <f>).

    formulaR2?: string | null

    Second input cell of a data table (r2 on <f>).

    formulaRef?: string | null

    The ref range of a shared, array or data-table formula.

    formulaType?: string | null

    The t attribute of <f>, read and written verbatim (such as 'shared', 'array' or 'dataTable'); omitted on read when <f> has none.

    inlineString?: string | null

    Inline string content (used for inlineStr cell type).

    reference: string

    A1-style cell reference (e.g., 'B3').

    richText?: RichTextRun[]

    Rich text runs for mixed-format text within a cell. On read, a shared-string cell gets the runs of the shared string its index names; inline-string runs are not modelled. Set it to write rich text.

    sharedIndex?: number | null

    Shared formula group index.

    styleIndex: number | null

    Zero-based index into StylesData.cellXfs, or null for default.

    value: string | null

    The cell value as a string (numbers are stored as string representations).