Skip to main content

Module cell_ref

Module cell_ref 

Source
Expand description

Cell reference conversion utilities.

Provides functions for converting between A1-style cell references (e.g. "A1", "$AB$100", "XFD1048576") and 1-based (col, row) numeric coordinates.

Functionsยง

cell_name_to_coordinates
Parse an A1-style cell reference into (col, row) coordinates (both 1-based).
column_name_to_number
Convert a column name (e.g. "A", "Z", "AA", "XFD") to a 1-based column number.
column_number_to_name
Convert a 1-based column number to its letter name.
coordinates_to_cell_name
Convert 1-based (col, row) coordinates to an A1-style cell reference.