Category: FUNCTION | Updated: 2026-11-22
How to Use the COLUMN Function in Google Sheets | Get a Cell's Column Number
How to Use the COLUMN Function
The COLUMN function returns the column number (Column A = 1, Column B = 2, Column C = 3…) of a specified cell as a number. It is especially useful for automatically calculating column indexes when copying formulas horizontally.
Syntax
=COLUMN([cell_reference])
- cell_reference: The cell or cell range whose column number you want to find (optional). If omitted, it returns the column number of the cell in which
COLUMNis entered.
Example Using a Table
Here is an example of using COLUMN as the third argument (index) of VLOOKUP so that dragging one formula to the right extracts multiple columns at once.
| Row | Column A (Employee ID) | Column B (Name) | Column C (Department) | Column D (Title) |
|---|---|---|---|---|
| 1 | Employee ID | Name | Department | Title |
| 2 | E001 | =VLOOKUP($A2, EmployeeMaster!$A:$D, COLUMN(B1), FALSE) |
=VLOOKUP($A2, EmployeeMaster!$A:$D, COLUMN(C1), FALSE) |
=VLOOKUP($A2, EmployeeMaster!$A:$D, COLUMN(D1), FALSE) |
- Formula (cell B2):
=VLOOKUP($A2, EmployeeMaster!$A:$D, COLUMN(B1), FALSE) - Result: Because
COLUMN(B1)returns2, it retrieves the 2nd column (Name) fromEmployeeMaster. Dragging the formula across toC2andD2automatically updates it toCOLUMN(C1)(=3) andCOLUMN(D1)(=4), retrieving Department and Title in order.
Common Errors and Notes
- Shifts When Inserting or Deleting Columns: If you pass a specific cell such as
COLUMN(B1)and insert a new column to the left, the reference shifts toCOLUMN(C1)and changes the returned number. If you want the column number of the formula’s own cell, use=COLUMN()with no arguments. - Passing a Multi-Column Range: Specifying multiple columns like
=COLUMN(B1:D1)normally returns only the leftmost column number (2). To return all column numbers as an array, write=ARRAYFORMULA(COLUMN(B1:D1)).
Frequently Asked Questions
Q. Can I convert the column number from COLUMN into a column letter like A, B, or C?
A. Yes, you can. By combining ADDRESS and SUBSTITUTE as "=SUBSTITUTE(ADDRESS(1, COLUMN(), 4), "1", "")", you can convert the current column number into its column letter.
Q. What is the advantage of combining COLUMN with VLOOKUP?
A. By using COLUMN as the third argument (index) of VLOOKUP, dragging the formula across to the right automatically increments the column index to 2, 3, 4, and so on.