COLUMN function in Google Sheets
Returns the column number of a specified cell, with `A=1`.
=COLUMN([cell_reference])COLUMN syntax and parameters
One argument, zero required.
- cell_referencerangeOptional
[ OPTIONAL - By default, the cell containing the formula ] - The cell whose column number will be returned. Column A corresponds to 1. if cell_reference is a range more than one cell wide and the formula is not used as an array formula, the position of the first column in cell_reference is returned.
COLUMN examples
Formulas you'll actually reuse.
The column number behind a header cell, for INDEX or OFFSET math:
=COLUMN(D2)Result
4A 1, 2, 3… counter that survives inserting columns to its left (fill right from B):
=COLUMN() - COLUMN($B$1) + 1Result
1
COLUMN in Excel
Same name — your formula ports as-is.
Try COLUMN in the playground
Edit the example — nothing to install.
Preloaded with the COLUMN formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- ADDRESSReturns a cell reference as a string.LookupExcel
- CHOOSEReturns an element from a list of choices based on index.LookupExcel
- COLUMNSReturns the number of columns in a specified array or range.LookupExcel
- FORMULATEXTReturns the formula as a string. .LookupExcel
- GETPIVOTDATAExtracts an aggregated value from a pivot table that corresponds to the specified row and column headings.LookupExcel
- HLOOKUPHorizontal lookup. Searches across the first row of a range for a key and returns the value of a specified cell in the column found.LookupExcel