Excel
COLUMN function in Excel
Returns the column number of a reference
=COLUMN([reference])COLUMN syntax and parameters
One argument, zero required.
- referencerangeOptional
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 Google Sheets
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.
Loading the editor…
Related functions
More ways Excel gets this done.
- ADDRESSReturns a reference as text to a single cell in a worksheetLookupGoogle Sheets
- AREASReturns the number of areas in a referenceLookupNo Google Sheets equivalent
- CHOOSEChooses a value from a list of valuesLookupGoogle Sheets
- CHOOSECOLSReturns the specified columns from an arrayLookupGoogle Sheets
- CHOOSEROWSReturns the specified rows from an arrayLookupGoogle Sheets
- COLUMNSReturns the number of columns in a referenceLookupGoogle Sheets