# SHEET Function

> Return the number of a worksheet with the SHEET formula function of TX Sheet Control: the current sheet, a sheet name, the #N/A error and an example.

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

---

Return the number of a worksheet. Without an argument, SHEET returns the number of the sheet that contains the formula. With a sheet name as text, it returns the number of that sheet, and `#N/A` when no sheet has that name. With a cell reference as `value_or_reference`, it returns the number of the sheet that holds the cell; in TX Sheet Control, a reference to an empty cell returns `#N/A`.

### Syntax

```text
SHEET(value_or_reference)
```

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

Available for supported offline calculation.

### Examples

```text
=SHEET()
```

The formula returns 1 in the first sheet of the workbook.

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:** [SERIESSUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/seriessum/llms-full.txt)
- **Next:** [SHEETS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sheets/llms-full.txt)
