# INDIRECT Function

> Build a reference from text with the INDIRECT formula function of TX Sheet Control: A1 and R1C1 style, spilled ranges, the #REF! error and an example with SUM.

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

---

Return the reference that a text names, such as `"B5"` or `"C1:D2"`, so that a formula can build a reference from text. `reference` is the text of the reference; the second argument, named `rows_or_a1` in the syntax, is TRUE or omitted for the A1 style and FALSE for the R1C1 style, as in `INDIRECT("R1C1",FALSE)`. Text that is not a valid reference returns `#REF!`. The catalog accepts two arguments, although the syntax names five.

### Syntax

```text
INDIRECT(reference, rows_or_a1, columns, height, width)
```

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

Available for supported offline calculation.

### Examples

```text
=INDIRECT("A1:A3")
```

The formula returns the range A1:A3, whose values spill into three cells; wrap it in a function such as `SUM(INDIRECT("A1:A3"))` to aggregate them.

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:** [INDEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/index-function/llms-full.txt)
- **Next:** [INFO Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/info/llms-full.txt)
