Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
Register  \/ 


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.


=MMULT (array1, array2)


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.


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.


  • 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

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.