WorksheetFunction.MInverse (Excel)

Returns the inverse matrix for the matrix stored in an array.

The size of the array must not exceed 52 columns by 52 rows. If it does, the function returns a #VALUE! error. Array can be given as a cell range, such as A1:C3; as an array constant, such as {1,2,3;4,5,6;7,8,9}; or as a name for either of these. If any cells in array are empty or contain text, MInverse returns the #VALUE! error value. MInverse also returns the #VALUE! error value if array does not have an equal number of rows and columns. Formulas that return arrays must be entered as array formulas. Inverse matrices, like determinants, are generally used for solving systems of mathematical equations involving several variables. The product of a matrix and its inverse is the identity matrix—the square array in which the diagonal values equal 1, and all other values equal 0. As an example of how a two-row, two-column matrix is calculated, suppose that the range A1:B2 contains the letters a, b, c, and d that represent any four numbers. The following table shows the inverse of the matrix A1:B2.

MInverse (Arg1)

Arg1: Array - a numeric array with an equal number of rows and columns.


Dim arrMInverse() As Variant
arrMInverse() = WorksheetFunction.MInverse(Arg1:=)