MINVERSE function
Returns the inverse of a square matrix as a spilled array; used with MMULT to solve linear equations.
Available in All versions of Excel; spills automatically in Microsoft 365 and Excel 2021+, earlier versions need Ctrl+Shift+Enter over a selected range
In every Excel versionWorks in Google Sheets
Syntax
MINVERSE(array)| Argument | What it means | |
|---|---|---|
array | Required | A square range or array of numbers with a non-zero determinant. |
Returns: A square array of the same size: the inverse matrix.
How MINVERSE works
The inverse of a matrix A is the matrix that, multiplied by A, gives the identity matrix (MUNIT). Its main practical use in Excel is solving systems of linear equations: if A·x = b, then x = A⁻¹·b, written as =MMULT(MINVERSE(A), b). That solves problems like working out unit prices from several receipts, mixing ingredients to hit targets, or input–output models in economics.
In Microsoft 365 and Excel 2021+ the result spills automatically. In older versions select a range of the right size, type the formula and confirm with Ctrl+Shift+Enter. A matrix whose determinant (MDETERM) is 0 has no inverse and returns #NUM!. Results are floating point, so expect tiny rounding such as 0.6000000000000001.
Examples
1Inverse of a 2 × 2 matrix
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Matrix | Col 1 | Col 2 | |||
| 2 | Row 1 | 4 | 7 | 0.6 | -0.7 | |
| 3 | Row 2 | 2 | 6 | -0.2 | 0.4 |
The determinant is 4×6 − 7×2 = 10, and the inverse is [[6, −7], [−2, 4]] / 10.
2Work out unit prices from two receipts
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Order | Coffees | Croissants | Total paid | ||
| 2 | Order 1 | 2 | 1 | 8.1 | 3.00 | |
| 3 | Order 2 | 1 | 3 | 9.3 | 2.10 |
2 coffees + 1 croissant = 8.10 and 1 coffee + 3 croissants = 9.30. Solving the system gives a coffee at 3.00 and a croissant at 2.10 (2 decimals).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The matrix is singular (determinant 0), e.g. one row is a multiple of another. | Check the data; the equations are not independent. |
#VALUE! | The range is not square or contains text/blanks. | Use a square numeric range. |
#SPILL! | Cells in the output area are occupied. | Clear the spill range. |
Tips
- Wrap results in ROUND to hide floating-point noise.
- Check an inverse:
=MMULT(A, MINVERSE(A))should equalMUNIT(n).
Google Sheets
MINVERSE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
MINVERSE in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | INVERZE |
| Danish | MINVERT |
| Dutch | INVERSEMAT |
| Finnish | MKÄÄNTEINEN |
| French | INVERSEMAT |
| German | MINV |
| Hungarian | INVERZ.MÁTRIX |
| Italian | MATR.INVERSA |
| Norwegian (Bokmål) | MINVERS |
| Polish | MACIERZ.ODW |
| Portuguese (Brazil) | MATRIZ.INVERSO |
| Portuguese (Portugal) | MATRIZ.INVERSA |
| Russian | МОБР |
| Spanish | MINVERSA |
| Swedish | MINVERT |
| Turkish | DİZEY_TERS |