MMULT
returns the matrix product of two arrays · from excel · excel: verified match · sheets: verified match
signature
MMULT(array1, array2)
returns: array
| argument | required |
|---|---|
| array1 | required |
| array2 | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | 10 | 2 | 1 | 2 | ||||
| 2 | 20 | 4 | 3 | 4 |
fx
=MMULT(A1:B2, G1:H2) 16 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) |