Practice free

MINVERSE function

MINVERSE returns the inverse of a square matrix, spilled as an array. It is a step in solving simultaneous equations or doing regression by hand.

Example

Read it as a sentence: find the inverse of the 2 by 2 grid in F1:G2, then show its top left value, which gives -2.

Practice this in the app

Syntax

MINVERSE(array)

array (required)
A square numeric matrix.

Returns: The inverse matrix, which spills as an array.

One MINVERSE formula can fill more than one cell. When the result has several values, they spill into the cells below or to the right of the formula.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=MINVERSE({2,0;0,4}) 0.5 Array constant
=MINVERSE(4) 0.25 Single number
=MINVERSE(Data!F1:G2) -2 2x2 spills
=MINVERSE(0) #NUM! Zero
=MINVERSE(Data!H1:I2) #NUM! Singular
=MINVERSE(Data!J1:L2) #VALUE! Non-square
=MINVERSE(Data!F4:G5) #VALUE! Text in matrix

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Singular matrices return #NUM!.
  • Older Excel needed Ctrl+Shift+Enter over a selected block.

Where it works

Excel
MINVERSE is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .