Quantunet.com

My Account

Joins Us
Excel QuickSkills
The MMULT() Function Knowledgebase  

 

The MMULT() function calculates the product of two arrays.

  • The syntax for the function is MMULT(array_1, array_2).

The arguments "array_1" and "array_2" can be an array of numerical values, references to a range of cells or a named range of which you want to find product. If the number of columns "array_1"is different from the number of rows in "array_2" or the number of elements in the resulting array is greater than 5,461 cells a #VALUE error will be returned.

The MMULT function multiplies the two arrays returning a resulting array For example: MMULT({6,2:4,1},{8,5:9,2}) = {66,34:41,22}.The first element of the resultant array is created by multiplying each element in the first row of the first array by each element in the first column of the second array. i.e. (6*8+4*2) = (48+18) = 66. The second element is created by multiplying each of element in the first row of the first array by each element in the second column of the second matrix giving (6*5+2*2) =34 and the patterns continues for each resultant element (4*8+1*9)= 41 and (4*5+1*2) =22. The same pattern is also used for larger arrays.

To learn more about multiplying matrices or "arrays" in mathematics see: [The Multiplying Matrices Mathematics Knowledgebase].


[The MINVERSE() function knowledgebase]
[The MDETERM() function
knowledgebase]
[The TRANSPOSE() function
knowledgebase]


How to use the MMULT() function:

  • Type " =MMULT( ".
  • Enter the reference for the "known_y" values "B3:C4".
  • Type a comma.
  • Enter the reference for the "known_x" values "E3:F4 ".
  • Type a comma.
  • Type")" then press the "Enter" key.
  • Select the range H3:I4.
  • Press the "F2" key the press the Ctrl + Shift + Enter keys.

 

Note: If the above formula is not entered as an array formula it will return only single results. i.e. MMULT(B3:C4,E3:F4) = 66. which is only the first element of the resulting array. To enter the function as an array function: select the range H3:I4 press the " F2" key then hold down the "Ctrl" and "Shift" keys and press the Enter" key. This will enter the function as an array distributed over cells H3, I3,H4 and I4.


© 2007 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us