What is the MINVERSE function?
=MINVERSE(array)MINVERSE returns the inverse of a square matrix: the matrix that gives the identity matrix (1s on the diagonal) when multiplied by the original.
If the determinant is 0 there is no inverse and you get #NUM!. A2:C4 is matrix 1, E2:G4 is matrix 2, and the result fills from column I. Drag a range to change the matrix size.
Arguments
- array
- A range of numbers with as many rows as columns.
MINVERSE examples
Example 1. 2×2 inverse
=MINVERSE(A2:B3){-2,1;1.5,-0.5}.
Example 2. Solve a system of equations
=MMULT(MINVERSE(A2:B3), D2:D3)Multiply the inverse of the coefficient matrix by the constants to get the solution.
Common mistakes
Determinant of 0
There is no inverse: #NUM!.
Too few result cells
In older versions, selecting a result range that is too small shows only part of the result.
FAQ
- How do I check it?
- See whether =MMULT(original, inverse) is the identity matrix.
- Tiny rounding errors
- Results can have very small errors, so wrapping them in ROUND can help.