MMULT(matrix1, matrix2)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are analyzing sales data for different products across various regions, and you have the following matrices:
| Region | Product A | Product B |
|---|---|---|
| North | 10 | 20 |
| South | 30 | 40 |
| Product | Price |
|---|---|
| Product A | 5 |
| Product B | 10 |
You want to calculate the total sales revenue for each region based on the number of products sold and their prices.
To achieve this, you would use the MMULT function as follows:
=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.When you apply the MMULT formula, the output would look like this:
| Region | Total Revenue |
|---|---|
| North | 250 |
| South | 550 |
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.
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.