1. Home
  2. Functions
  3. Math
  4. MMULT

MMULT function

Returns the matrix product of two arrays.

Syntax

=MMULT(array1, array2)

Arguments

ArgumentRequiredDescription
array1RequiredThe first matrix
array2RequiredThe second matrix (its rows must equal the columns of array1)

How to use MMULT

When MMULT returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

MMULT takes 2 required arguments. Type =MMULT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MMULT({1,3;7,2}, {2,0;0,2})Result 2 by 2 array
Spilled result
AB
126
2144
=MMULT({1,2,3}, {4;5;6})Result 32
=MMULT({1,2}, {1,2})Result #VALUE!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.