# BYROW Function

> Apply a LAMBDA to each row of an array and return a column of results with BYROW in TX Sheet Control: the LAMBDA parameter, #CALC! and #VALUE! errors.

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

---

Apply a LAMBDA to each row of an array and return the results as a column. BYROW takes two arguments: the array, and a LAMBDA with one parameter that receives each row and returns a single value. A LAMBDA that returns an array returns `#CALC!`, and a second argument that is neither a LAMBDA nor a function name such as `SUM` returns `#VALUE!`.

### Syntax

```text
BYROW(array_or_initial, array_or_lambda, lambda)
```

Category: Logical. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=BYROW({1,2;3,4},LAMBDA(row,SUM(row)))
```

The formula spills the column 3, 7: the sums of the rows {1,2} and {3,4}.

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:** [BYCOL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bycol/llms-full.txt)
- **Next:** [CALL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/call/llms-full.txt)
