Math & trig function

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)
ArgumentWhat it means
arrayRequiredA 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

E2fx=MINVERSE(B2:C3)
ABCDEF
1MatrixCol 1Col 2
2Row 1470.6-0.7
3Row 226-0.20.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

F2fx=MMULT(MINVERSE(B2:C3), D2:D3)
ABCDEF
1OrderCoffeesCroissantsTotal paid
2Order 1218.13.00
3Order 2139.32.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).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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 equal MUNIT(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.

LanguageFunction name
CzechINVERZE
DanishMINVERT
DutchINVERSEMAT
FinnishMKÄÄNTEINEN
FrenchINVERSEMAT
GermanMINV
HungarianINVERZ.MÁTRIX
ItalianMATR.INVERSA
Norwegian (Bokmål)MINVERS
PolishMACIERZ.ODW
Portuguese (Brazil)MATRIZ.INVERSO
Portuguese (Portugal)MATRIZ.INVERSA
RussianМОБР
SpanishMINVERSA
SwedishMINVERT
TurkishDİZEY_TERS