Skip to content
Sheetwrite

@sheetwrite/core/codec

cellA1function

Report a problem

On this page

Plumbing for Sheetwrite's own codecs, such as @sheetwrite/xlsx. An internal entry point: no compatibility promise, not for applications.

It re-exports the values a codec needs from the modules that define them, so loading a codec does not load the grid and the rest of the main entry point. 0-based (row, col) → A1 cell reference (0, 0 → "A1").

Declaration

function cellA1(row: number, col: number): string

Parameters

row: numberrequired

Zero-based row index.

col: numberrequired

Zero-based column index.

Returns

string

The A1 reference, such as "B3" for row 2, column 1.