# MMULT

math · from excel · excel: verified match · sheets: verified match

returns the matrix product of two arrays

## signature

```
MMULT(array1, array2)
```

returns: `array`

## arguments

- array1: range — required
- array2: range — required

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=MMULT(A1:B2, G1:H2)` | `16` | A1=10, A2=20, B1=2, B2=4, G1=1, G2=3, H1=2, H2=4 |

## errors

error values observed from the engine — each with a call that produces it.

| error | produced by |
| --- | --- |
| `#VALUE!` | `=MMULT(,)` |
| `#ERROR!` | `=MMULT(1)` |
| `#NUM!` | `=MMULT(A1, C1)` |

## related

- [ABS](https://deepcalc.com/functions/abs.md) — returns absolute value of a number
- [ACOS](https://deepcalc.com/functions/acos.md) — returns arccosine of a number
- [ACOSH](https://deepcalc.com/functions/acosh.md) — returns inverse hyperbolic cosine
- [ACOT](https://deepcalc.com/functions/acot.md) — returns the arccotangent of a number
- [ACOTH](https://deepcalc.com/functions/acoth.md) — returns the inverse hyperbolic cotangent
- [ADD](https://deepcalc.com/functions/add.md) — adds two numbers — sheets exposes the + operator as a function
- [AGGREGATE](https://deepcalc.com/functions/aggregate.md) — aggregates a range with a chosen function, optionally ignoring error values
- [ARABIC](https://deepcalc.com/functions/arabic.md) — converts roman numeral to arabic number

## navigate

- [all math functions](https://deepcalc.com/functions/math-functions.md)
- [function index](https://deepcalc.com/functions.md) — all 600 functions
- [error values](https://deepcalc.com/errors.md) · [concepts](https://deepcalc.com/concepts.md) · [limits](https://deepcalc.com/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/functions/mmult