MMULT function

Returns the matrix product of two arrays. The result is an array with the same number of rows as array1 and the same number of columns as array2.

Syntax

MMULT(array1,array2)

Argument

Description

Remarks

array1,array2

The arrays that you want to multiply.

  • The number of columns in array1 must be the same as the number of rows in array2, and both arrays must contain only numbers.

  • The array1 argument and array2 can be given as cell ranges, array constants, or references.

  • If any cells in array are empty or contain text, this function returns the #VALUE! error value.

  • If the number of columns in array1 is different from the number of rows in array2, MMULT returns the #VALUE! error value.

General remarks

  • The matrix product array a of two arrays b and c is:

    MMULT Equation

  • Formulas that return arrays must be entered as array formulas.

Example 1: Returning the matrix product of two arrays

Example 2: Returning the matrix product of two arrays

Rate this content:
Not helpfulSomewhat helpfulHelpfulVery helpfulSolved my problem 
 
Share your feedback about this topic