M inverse
MINVERSE Function¶
The MINVERSE function in Excel calculates the inverse of a square matrix provided as an array or range. The inverse of a matrix ( A ) is a matrix ( B ) such that ( A \times B = I ), where ( I ) is the identity matrix.
Syntax:¶
MINVERSE(array)
- array: A square range of cells (e.g., A1:B2) or a 2D array constant that represents a matrix. The number of rows and columns must be equal.
Examples:¶
-
2x2 Matrix
Formula:
If the range A1:B2 contains:=MINVERSE(A1:B2)
Returns: Explanation: This is the inverse of the 2x2 matrix. -
3x3 Matrix
Formula:
If the range A1:C3 contains:=MINVERSE(A1:C3)
Returns: Explanation: Excel calculates the inverse of the 3x3 matrix. -
Single-Cell Matrix
If A1 contains5:
Formula:=MINVERSE(A1)
Returns:0.2, because the inverse of a 1x1 matrix is ( 1 / \text{value} ).
Usage Notes:¶
- The input must be a square matrix; Excel will return a
#VALUE!error if the rows and columns are not equal. - If the determinant of the matrix is
0(i.e., the matrix is singular), Excel will return a#NUM!error because the matrix does not have an inverse. - The
MINVERSEfunction must be entered as an array formula in versions prior to Excel 365:- Select a range with the same dimensions as the original matrix.
- Enter the formula and press
Ctrl + Shift + Enter.
- In Excel 365 and Excel 2021, dynamic arrays allow the result to spill automatically without
Ctrl + Shift + Enter. - All elements in the input matrix must be numeric; otherwise, Excel will return an error.
- The inverse matrix is widely used in linear algebra to solve systems of linear equations and other mathematical computations.