# ROW Function

> Return the row number of a cell or range with the ROW formula function of TX Sheet Control: the first row of a range and the row of the formula's own cell.

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

---

Return the row number of a reference. `reference` is a cell or a range; for a range, ROW returns the number of its first row. Without `reference`, ROW returns the row of the cell that holds the formula.

### Syntax

```text
ROW(reference)
```

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

Available for supported offline calculation.

### Examples

```text
=ROW(A5)
```

The formula returns 5.

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:** [ROUNDUP Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/roundup/llms-full.txt)
- **Next:** [ROWS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rows/llms-full.txt)
