Home »
Excel-Built-In-Functions »
Excel-Lookup-And-Reference-Functions »
Excel-Column-Function
The Excel COLUMN Function
Related Function:
ROW Function
Function Description
The Excel Column function returns the first column number within a supplied reference
or the number of the current column.
The syntax of the Column function is:
COLUMN( [reference] )
where [reference] is an optional argument that specifies
the Excel reference that you want to return the column number of. If the
[reference] argument is omitted, the function returns the
number of the current column (i.e. the column for the cell that the function is entered into).
Column Function Examples
The spreadsheet below shows six examples of the Excel Column function.
Formulas:
|
A |
B |
C |
1 |
=COLUMN( ) |
=COLUMN( ) |
=COLUMN( E6 ) |
2 |
=COLUMN( ) |
=COLUMN( ) |
=COLUMN( G2:H3 ) |
|
Results:
|
Note that in the above example spreadsheet:
-
The examples in cells A1-B2 omit the [reference]
argument. Therefore, in these cases, the Excel Column function returns the column
number of the cell that the function is entered into.
-
The example in cell C1 provides the reference for cell E6 to the Column function.
Therefore, in this case, the function returns the number for column E (i.e. column
number 5).
-
The example in cell C2 provides the range G2:H3 to the Column function. Therefore,
in this case, the function returns the column number of the first cell in the supplied
range (i.e. cell G2), which is column number 7.
For further examples of the Excel Column Function, see the
Microsoft Office website.