1. Home
  2. Functions
  3. Lookup and reference
  4. COLUMN

COLUMN function

Returns the column number of a reference, or of the cell with the formula when left out.

Syntax

=COLUMN([reference])

Arguments

ArgumentRequiredDescription
referenceOptionalA cell or range (optional)

How to use COLUMN

When COLUMN returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

COLUMN takes no required arguments and 1 optional argument. Type =COLUMN( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=COLUMN(D10)Result 4
=COLUMN(A1:C1)Result 1 by 3 array
Spilled result
ABC
1123

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.