Skip to content
Sheetwrite

@sheetwrite/core/codec

colToA1function

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. Column index (0-based) → A1 column label (0 → "A", 26 → "AA").

Declaration

function colToA1(col: number): string

Parameters

col: numberrequired

Zero-based column index.

Returns

string

The column's letters, such as "C" for 2.