## Excel MMULT Function

The Excel MMULT function returns the matrix product of two arrays. The array result has the same number of rows as array1 and the same number of columns as array2.

#### Syntax

=MMULT (array1, array2)

#### Arguments

Array1 (Required): The first array you want to multiply.

• The number of columns in array1 must be the same as the number of rows in array2.
• Values in this array must be numbers.

Array2 (Required): The second array you want to multiply.

• The number of rows in array2 must be the same as the number of columns in array1.
• Values in this array must be numbers.

#### Return value

The MMULT function will return the matrix product of two arrays.

#### Function notes

1. Array1 and Array2 can be given as cell ranges, array constants or references.
2. The MMULT function will return #VALUE! Error value when:

• There are empty cells or text cells in the two arrays;
• The number of columns in Array1 is different from the number of rows in Array2.

3. This MMULT function must be entered as an array formula by pressing the Ctrl + Shift + Enter keys.

#### Example

Supposing you have two number arrays as below screenshot shown, and you need to return the matrix product of these two arrays with the MMULT function, here shows you step by step to achieve it.

1. Please select a range with 2 cells wide and high.

Note: As the above screenshot shown, array1 has 2 rows, array2 has 2 columns, so the result array has 2 rows and 2 columns.

2. Copy the below formula into the selected cells and then, press the Ctrl + Shift + Enter keys simultaneously to get all the array results at the same time.
=MMULT(B4:D5,F4:G6)

Notes:

• B4:D5 is the range of the first array, and F4:G6 is the range of the second array. You can change them based on your needs.
• If the selected cells are more than 2 rows and 2 columns, #N/A error will be returned in those additional cells.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 ðŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functionsâ€¦ Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.