MINVERSE
Quirk foundCategory: Math and trigonometry · Last tested 2026-09-01
Real compatibility results for the MINVERSE function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-31) | Quirk found |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when MINVERSE’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Quirk found | 2026-08-31 |
| 24.8.7.2 | Quirk found | 2026-08-31 |
| 25.2.0.3 | Quirk found | 2026-08-31 |
| 25.8.7.3 | Quirk found | 2026-08-31 |
Why isn't MINVERSE working in LibreOffice?
MINVERSE exists in LibreOffice 25.8.7.3, but it is not a drop-in match for
Excel — our executed tests found real behavioral differences (detailed in the test results on this
page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage
against the failing cases above before assuming your data is wrong.
Discovered quirks
-
=INDEX(MINVERSE({1,2;2,4}),1,1) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Excel documents: "Some square matrices cannot be inverted and will return the #NUM! error value with MINVERSE. The determinant for a noninvertable matrix is 0." The matrix {1,2;2,4} has determinant exactly zero (the second row is twice the first), so it is precisely the case the page describes. Note the documented code here is #NUM!, while the empty/text/non-square conditions on the same page are documented as #VALUE! -- the page distinguishes "this matrix has no inverse" from "this is not a matrix", so both codes are asserted.; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
Executed test cases
Excel for the web (executed 2026-09-01 via OneDrive recalculation)
These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =MINVERSE(A2:B3) | The inverse of a 2x2 matrix whose inverse has exact decimal entries | {0.5, 1, 0.5, 2} | {{0.5, 1.0}, {0.5, 2.0}}ProvenanceDerived exactly, in rational arithmetic, from the formula the page itself tabulates for a two-row two-column matrix: for {a,b;c,d} the inverse is {d/(ad-bc), b/(bc-ad); c/(bc-ad), a/(ad-bc)}. Here a=4, b=-2, c=-1, d=1, so ad-bc = 4 - 2 = 2 and the inverse is {1/2, 2/2; 1/2, 4/2} = {0.5, 1; 0.5, 2}. Every entry is an exact binary fraction, so a conforming engine must reproduce them bit for bit -- no tolerance is being leaned on. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =MINVERSE(A2:C4) | A 3x3 matrix of determinant 1, whose inverse is therefore all integers | {-24.000000000000085, 18.000000000000064, 5.000000000000017, 20.00000000000007, -15.000000000000053, -4.000000000000014, -5.000000000000018, 4.000000000000013, 1.0000000000000036} | {{-24.0, 18.0, 5.0}, {20.0, -15.0, -4.0}, {-5.0, 4.0, 1.0}}ProvenanceThe matrix {1,2,3; 0,1,4; 5,6,0} has determinant 1*(1*0-4*6) - 2*(0*0-4*5) + 3*(0*6-1*5) = -24 + 40 - 15 = 1. Because the determinant is exactly 1 and every entry is an integer, the inverse is the adjugate and is ITSELF all integers: {-24,18,5; 20,-15,-4; -5,4,1}, derived here by exact cofactor expansion in rational arithmetic. That is the whole point of choosing this matrix: the page warns that "MINVERSE is calculated with an accuracy of approximately 16 digits, which may lead to a small numeric error when the cancellation is not complete", and an all-integer target leaves nowhere for such an error to hide. Verified by multiplying back: the product with the original matrix is the exact 3x3 identity. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =INDEX(MMULT(A2:B3,MINVERSE(A2:B3)),1,1) | The documented defining property: a matrix times its inverse is the identity | 1 | 1ProvenanceThe page states it directly: "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." This case asserts that property on the same 2x2 matrix as the first case, reading the top-left entry of the product, which must be exactly 1. It depends on no derived constant at all, so it holds for any conforming engine regardless of how it computes the inverse. |
Matched |
| =INDEX(MINVERSE({1,2;2,4}),1,1) | A singular matrix, which cannot be inverted | #NUM! | #NUM!ProvenanceExcel documents: "Some square matrices cannot be inverted and will return the #NUM! error value with MINVERSE. The determinant for a noninvertable matrix is 0." The matrix {1,2;2,4} has determinant exactly zero (the second row is twice the first), so it is precisely the case the page describes. Note the documented code here is #NUM!, while the empty/text/non-square conditions on the same page are documented as #VALUE! -- the page distinguishes "this matrix has no inverse" from "this is not a matrix", so both codes are asserted. |
Matched |
| =INDEX(MINVERSE({1,2,3;4,5,6}),1,1) | A 2x3 array, which is not square | #VALUE! | #VALUE!ProvenanceExcel documents: "MINVERSE also returns a #VALUE! error if array does not have an equal number of rows and columns." Contrast with the singular case above, which is documented as #NUM!. |
Matched |
| =INDEX(MINVERSE(A2:B3),1,1) | A square range containing a text cell, which the page excludes | #VALUE! | #VALUE!ProvenanceExcel documents: "If any cells in array are empty or contain text, MINVERSE returns a #VALUE! error." |
Matched |
Google Sheets (executed 2026-08-31 via Drive import)
Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =MINVERSE(A2:B3) | The inverse of a 2x2 matrix whose inverse has exact decimal entries | {0.5, 1.0, 0.5, 2.0} | {{0.5, 1.0}, {0.5, 2.0}}ProvenanceDerived exactly, in rational arithmetic, from the formula the page itself tabulates for a two-row two-column matrix: for {a,b;c,d} the inverse is {d/(ad-bc), b/(bc-ad); c/(bc-ad), a/(ad-bc)}. Here a=4, b=-2, c=-1, d=1, so ad-bc = 4 - 2 = 2 and the inverse is {1/2, 2/2; 1/2, 4/2} = {0.5, 1; 0.5, 2}. Every entry is an exact binary fraction, so a conforming engine must reproduce them bit for bit -- no tolerance is being leaned on. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =MINVERSE(A2:C4) | A 3x3 matrix of determinant 1, whose inverse is therefore all integers | {-24, 18.000000000000064, 5.000000000000017, 20.00000000000007, -15.000000000000053, -4.000000000000014, -5.000000000000018, 4.000000000000013, 1.0000000000000036} | {{-24.0, 18.0, 5.0}, {20.0, -15.0, -4.0}, {-5.0, 4.0, 1.0}}ProvenanceThe matrix {1,2,3; 0,1,4; 5,6,0} has determinant 1*(1*0-4*6) - 2*(0*0-4*5) + 3*(0*6-1*5) = -24 + 40 - 15 = 1. Because the determinant is exactly 1 and every entry is an integer, the inverse is the adjugate and is ITSELF all integers: {-24,18,5; 20,-15,-4; -5,4,1}, derived here by exact cofactor expansion in rational arithmetic. That is the whole point of choosing this matrix: the page warns that "MINVERSE is calculated with an accuracy of approximately 16 digits, which may lead to a small numeric error when the cancellation is not complete", and an all-integer target leaves nowhere for such an error to hide. Verified by multiplying back: the product with the original matrix is the exact 3x3 identity. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =INDEX(MMULT(A2:B3,MINVERSE(A2:B3)),1,1) | The documented defining property: a matrix times its inverse is the identity | 1 | 1ProvenanceThe page states it directly: "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." This case asserts that property on the same 2x2 matrix as the first case, reading the top-left entry of the product, which must be exactly 1. It depends on no derived constant at all, so it holds for any conforming engine regardless of how it computes the inverse. |
Matched |
| =INDEX(MINVERSE({1,2;2,4}),1,1) | A singular matrix, which cannot be inverted | #NUM! | #NUM!ProvenanceExcel documents: "Some square matrices cannot be inverted and will return the #NUM! error value with MINVERSE. The determinant for a noninvertable matrix is 0." The matrix {1,2;2,4} has determinant exactly zero (the second row is twice the first), so it is precisely the case the page describes. Note the documented code here is #NUM!, while the empty/text/non-square conditions on the same page are documented as #VALUE! -- the page distinguishes "this matrix has no inverse" from "this is not a matrix", so both codes are asserted. |
Matched |
| =INDEX(MINVERSE({1,2,3;4,5,6}),1,1) | A 2x3 array, which is not square | #VALUE! | #VALUE!ProvenanceExcel documents: "MINVERSE also returns a #VALUE! error if array does not have an equal number of rows and columns." Contrast with the singular case above, which is documented as #NUM!. |
Matched |
| =INDEX(MINVERSE(A2:B3),1,1) | A square range containing a text cell, which the page excludes | #VALUE! | #VALUE!ProvenanceExcel documents: "If any cells in array are empty or contain text, MINVERSE returns a #VALUE! error." |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =MINVERSE(A2:B3) | The inverse of a 2x2 matrix whose inverse has exact decimal entries | {0.5, 1, 0.5, 2} | {{0.5, 1.0}, {0.5, 2.0}}ProvenanceDerived exactly, in rational arithmetic, from the formula the page itself tabulates for a two-row two-column matrix: for {a,b;c,d} the inverse is {d/(ad-bc), b/(bc-ad); c/(bc-ad), a/(ad-bc)}. Here a=4, b=-2, c=-1, d=1, so ad-bc = 4 - 2 = 2 and the inverse is {1/2, 2/2; 1/2, 4/2} = {0.5, 1; 0.5, 2}. Every entry is an exact binary fraction, so a conforming engine must reproduce them bit for bit -- no tolerance is being leaned on. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =MINVERSE(A2:C4) | A 3x3 matrix of determinant 1, whose inverse is therefore all integers | {-24, 18, 5, 20, -15, -4, -5, 4, 0.999999999999999} | {{-24.0, 18.0, 5.0}, {20.0, -15.0, -4.0}, {-5.0, 4.0, 1.0}}ProvenanceThe matrix {1,2,3; 0,1,4; 5,6,0} has determinant 1*(1*0-4*6) - 2*(0*0-4*5) + 3*(0*6-1*5) = -24 + 40 - 15 = 1. Because the determinant is exactly 1 and every entry is an integer, the inverse is the adjugate and is ITSELF all integers: {-24,18,5; 20,-15,-4; -5,4,1}, derived here by exact cofactor expansion in rational arithmetic. That is the whole point of choosing this matrix: the page warns that "MINVERSE is calculated with an accuracy of approximately 16 digits, which may lead to a small numeric error when the cancellation is not complete", and an all-integer target leaves nowhere for such an error to hide. Verified by multiplying back: the product with the original matrix is the exact 3x3 identity. ENTERED AS AN ARRAY FORMULA. The page is explicit -- "the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER" -- so the harness writes it as a legacy CSE array formula covering the whole result range, not as a plain scalar formula. Writing it as a scalar string makes even a fully supported matrix function return a single cell or #VALUE!, which would be a harness artefact rather than a finding. |
Matched |
| =INDEX(MMULT(A2:B3,MINVERSE(A2:B3)),1,1) | The documented defining property: a matrix times its inverse is the identity | 1 | 1ProvenanceThe page states it directly: "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." This case asserts that property on the same 2x2 matrix as the first case, reading the top-left entry of the product, which must be exactly 1. It depends on no derived constant at all, so it holds for any conforming engine regardless of how it computes the inverse. |
Matched |
| =INDEX(MINVERSE({1,2;2,4}),1,1) | A singular matrix, which cannot be inverted | #VALUE! | #NUM!ProvenanceExcel documents: "Some square matrices cannot be inverted and will return the #NUM! error value with MINVERSE. The determinant for a noninvertable matrix is 0." The matrix {1,2;2,4} has determinant exactly zero (the second row is twice the first), so it is precisely the case the page describes. Note the documented code here is #NUM!, while the empty/text/non-square conditions on the same page are documented as #VALUE! -- the page distinguishes "this matrix has no inverse" from "this is not a matrix", so both codes are asserted. |
Mismatch |
| =INDEX(MINVERSE({1,2,3;4,5,6}),1,1) | A 2x3 array, which is not square | #VALUE! | #VALUE!ProvenanceExcel documents: "MINVERSE also returns a #VALUE! error if array does not have an equal number of rows and columns." Contrast with the singular case above, which is documented as #NUM!. |
Matched |
| =INDEX(MINVERSE(A2:B3),1,1) | A square range containing a text cell, which the page excludes | #VALUE! | #VALUE!ProvenanceExcel documents: "If any cells in array are empty or contain text, MINVERSE returns a #VALUE! error." |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation