Returns the column number or numbers of the specified cell reference.
Syntax Copy Code |
---|
COLUMN( [Reference r] ) → IntegerOrArray |
This function returns the number of a cell column. For example, the function returns 1 for column A, 2 for column B, and so on.
If r is omitted, the function returns the column number of the current cell. If r identifies a range of cells with width greater than 1, COLUMN returns an array containing the numbers of all columns included in the range. For example, COLUMN(A1:C2) returns the array {1, 2, 3}.
Formula Copy Code |
---|
=COLUMN() |
Function Reference
ROW Function
SHEET Function