The MINVERSE function takes just one argument, array, which should be a square matrix, with an equal number of rows and columns. In order for MINVERSE to calculate an inverse matrix, array must contain numbers only. When an inverse exists, MINVERSE returns an inverse matrix with the same dimensions as the array provided. If a matrix cannot be inverted, MINVERSE will return a #NUM! error. A matrix that can’t be inverted has a determinant of zero (0).

Examples

In the example shown the formula used in E7 to calculate the inverse matrix of the 2 x 2 matrix in the range B7:C8 is: The result is the 2 x 2 matrix seen in E7:F8, which can also be expressed as the array {-2,3;3,-4}. The formula in M7 calculates the inverse matrix of the 3 x 3 matrix in B7:C8: The result is the 3 x 3 matrix seen in M7:O9, which can be expressed as the array {-24,20,-5;18,-15,4;5,-4,1}.

Array syntax

The MINVERSE function returns an array of values. In Excel 365, where dynamic arrays are native, you can use the MINVERSE function without any special handling – MINVERSE will return an array of values that spill directly into cells in the worksheet. In versions of Excel prior to Excel 365, you need to enter MINVERSE enter as a multi-cell array formula to display results directly on the worksheet. To do this, make a selection of the right size, and enter MINVERSE with control + shift + enter.

Notes

The input array must be a square matrix with an equal number of rows and columns The array argument can be provided as a range or array constant like {4,3;3,2} Empty cells in the source array will cause MINVERSE to return the #VALUE! error MINVERSE returns the #VALUE! error value if array does not have an equal number of rows and columns. If a matrix cannot be inverted, MINVERSE will return a #NUM! error. 

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.