# COLUMN Function

> Return the column number of a cell or range, or of the formula's own cell, with the COLUMN formula function of TX Sheet Control: syntax and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > COLUMN Function
- **187 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/column/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/column/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/column/llms-full.txt

---

Return the column number of a reference. `reference` is a cell or a range; for a range, COLUMN returns the number of its first column, so `COLUMN(C1:E1)` returns 3. Without `reference`, COLUMN returns the column number of the cell that contains the formula.

### Syntax

```text
COLUMN(reference)
```

Category: Lookup. Minimum arguments: 0. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=COLUMN(A5)
```

The formula returns 1, the number of column A.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [CODE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/llms-full.txt)
- **Next:** [COLUMNS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/columns/llms-full.txt)
