Google Sheets MMULT Function: Syntax, Examples & Tips

The MMULT function multiplies two arrays or matrices, returning the sum of products for corresponding elements, useful for linear algebra calculations.
Google Sheets
MMULT(matrix1, matrix2)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is an MMULT?
  3. A Practical Example
  4. MMULT Formula
  5. Result of the Formula
  6. Why Use MMULT?
  7. Key Takeaways:
  8. Example use case

Parameters

matrix1:
The first array or range of cells that you want to multiply. This matrix must have the same number of columns as the number of rows in the second matrix.

matrix2:
The second array or range of cells that you want to multiply. This matrix must have the same number of rows as the number of columns in the first matrix.

What is an MMULT?

The MMULT function in Google Sheets is a powerful tool used to perform matrix multiplication. It takes two arrays (or ranges) as input and returns the product of those matrices. This function is particularly useful in various mathematical, statistical, and engineering applications where matrix operations are required.

In simpler terms, MMULT allows you to multiply two sets of numbers arranged in rows and columns, providing a new set of numbers as a result.

A Practical Example

Imagine you are analyzing sales data for different products across various regions, and you have the following matrices:

Sales Matrix:

RegionProduct AProduct B
North1020
South3040

Price Matrix:

ProductPrice
Product A5
Product B10

You want to calculate the total sales revenue for each region based on the number of products sold and their prices.

MMULT Formula

To achieve this, you would use the MMULT function as follows:

Google Sheets
=MMULT(Sales!B2:C3, Prices!B2:B3)

In this formula:

  • Sales!B2:C3 is the range containing the sales data for Product A and Product B.
  • Prices!B2:B3 is the range containing the prices for Product A and Product B.

Result of the Formula

When you apply the MMULT formula, the output would look like this:

RegionTotal Revenue
North250
South550

In this case, the total revenue for the North region is calculated as (10 * 5) + (20 * 10) = 250, and for the South region, it is (30 * 5) + (40 * 10) = 550.

Why Use MMULT?

MMULT is beneficial because it simplifies the process of performing matrix operations in Google Sheets. It allows for efficient calculations without the need for manual multiplication and summation of individual elements. This function is particularly useful in financial modeling, data analysis, and any scenario where matrix mathematics is required.

Key Takeaways:

  • MMULT: A Google Sheets function that performs matrix multiplication on two arrays.
  • Efficient: Simplifies complex calculations by automating the multiplication and summation process.
  • Versatile: Useful in various fields such as finance, engineering, and data analysis.
  • Common Use Cases: Ideal for calculating revenues, analyzing data sets, and performing statistical operations.

MMULT is an essential function for anyone working with numerical data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a table with sales data where Column A lists products and Columns B and C contain sales figures for two different regions. Use the MMULT formula to calculate total sales for each product across both regions, streamlining your sales analysis.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.