Syntax
| Parameter | Description |
|---|---|
| [reference] | (Optional.) Parameter of the COLUMN function. |
Examples
Get column number
=COLUMN(D1)
Dynamic header numbering
=COLUMN()-COLUMN($A$1)+1
Select nth column dynamically
=INDEX(A1:E1, COLUMN()-2)
Common Errors
Occurs only when passed an invalid reference. COLUMN with no argument or a valid cell reference never errors.
Tips
=COLUMN() returns the column number of the cell containing the formula. In cell E3, it returns 5.
To get the column letter: =SUBSTITUTE(ADDRESS(1, COLUMN(), 4), "1", ""). This converts column number 5 to "E".
ROW gives vertical position, COLUMN gives horizontal position. Both are essential building blocks for position-aware formulas.
Try COLUMN in Viztab
Import your data and use COLUMN with 370+ other formulas. No signup required.
Open Viztab