MS Excel: How to use the MMULT Function (WS)
This Excel tutorial explains how to use the Excel MMULT function with syntax and examples.
Description
The Microsoft Excel MMULT function returns the matrix product of two arrays.
The MMULT function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the MMULT function can be entered as part of a formula in a cell of a worksheet.
Syntax
The syntax for the MMULT function in Microsoft Excel is:
MMULT( array1, array2 )
Parameters or Arguments
- array1
- An array of numbers that must have the same number of columns as the number of rows in array2.
- array2
- An array of numbers that must have the same number of columns as the number of rows in array1.
Returns
The MMULT function returns a numeric value.
If any of the cells in the array contain empty or non-numeric values, the MMULT function will return the #VALUE! error.
If the array1 does not contain the same number of columns as the number of rows in array2, the MMULT function will return the #VALUE! error.
Applies To
- Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
Type of Function
- Worksheet function (WS)
Example (as Worksheet Function)
Let's look at some Excel MMULT function examples and explore how to use the MMULT function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following MMULT examples would return:
=MMULT(A1:B2, A5:B6) Result: 6.23 =MMULT(A1:C3, A5:C7) Result: #VALUE! =MMULT({1,2;3,4},{5,6;7,8}) Result: 19
Advertisements