# MMULT Function

> Multiply two matrices with the MMULT formula function of TX Sheet Control: matching dimensions, the spilled result range and the #VALUE! error.

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

---

Return the matrix product of two arrays. `array_or_dimension` and `array2` are numeric arrays or ranges, and the number of columns of the first must equal the number of rows of the second; otherwise MMULT returns `#VALUE!`. The result has as many rows as the first array and as many columns as the second and spills into that range.

### Syntax

```text
MMULT(array_or_dimension, array2)
```

Category: Math. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=MMULT({1,2;3,4},{1,0;0,1})
```

The formula spills {1, 2; 3, 4}, because the second array is the identity matrix.

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:** [MIRR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mirr/llms-full.txt)
- **Next:** [MOD Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mod/llms-full.txt)
