COLUMN returns the column number of a reference — the horizontal counterpart to ROW.
COLUMN returns the column number of a given reference, where A=1, B=2, C=3 and so on. With no argument, it returns the column number of the cell containing the formula.
Commonly used inside formulas that need to know their own horizontal position — for example, alternating calculations across copied-right formulas.
=COLUMN([reference])| Argument | Description |
|---|---|
| reference optional | A cell or range. If omitted, returns the column number of the cell containing the formula. |
=COLUMN()If the formula sits in column D, this returns 4.
=COLUMN(F1)Returns 6, regardless of where the formula itself is located.
=IF(MOD(COLUMN(),2)=0,"Even col","Odd col")Returns a different result depending on whether the formula currently sits in an even or odd numbered column.
COLUMN returns a single column number. COLUMNS (plural) counts how many columns are in a range.
ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.
Start practicing free →