Contact

MDETERM Function in ONLYOFFICE Spreadsheet Editor: Find a Matrix Determinant

Mathematical Intermediate ONLYOFFICE Spreadsheet Editor

How to compute determinants with MDETERM, verified numeric matrix examples, square-range restrictions, and documented ONLYOFFICE errors.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked

MDETERM returns the determinant of a square numeric array. Its determinant is a scalar (one number), not a second matrix. It is useful for checking whether a small system of linear equations is invertible, for area/orientation calculations, and for verifying the relationship between a matrix and its inverse. See ONLYOFFICE’s MDETERM reference.

Exact syntax, argument order and defaults

=MDETERM(array)
Position Argument Type and meaning Default / optional status
1 array Required numeric cell array / range forming a square matrix No omitted argument / default.

No argument is optional, and there is no implied default. Source matrix entries should be numeric, including zero where intended; leaving a cell blank is not equivalent to zero in vendor-documented error handling. Preserve the order of arguments when combining matrix functions.

Vendor-confirmed errors: ONLYOFFICE explicitly documents #N/A when a referenced matrix contains empty or non-numeric cells, and #VALUE! for a non-square range. A numerically singular but correctly shaped matrix is not the same as a malformed range: its mathematical determinant is zero; this expected zero is not a native error-handling test.

Reproducible common matrix dataset

Start with a blank worksheet. Type each entry as a numeric cell (not as quoted text), then place results only in the indicated unused output cells. The sample is deliberately small enough for manual checking.

Range Matrix or vector, row by row Purpose
A2:B3 row 2: 2, 1; row 3: 3, 2 Invertible 2×2 matrix A (determinant 1).
D2:E3 row 2: 1, 4; row 3: 2, 5 Second 2×2 matrix B (determinant −3).
A6:C8 row 6: 1, 2, 3; row 7: 0, 1, 4; row 8: 5, 6, 0 Invertible 3×3 matrix C (determinant 1).
A11:B12 row 11: 1, 2; row 12: 2, 4 Singular 2×2 matrix S (determinant 0).
A14:B15 row 14: 2, 0; row 15: 0, 3 Diagonal 2×2 matrix D (determinant 6).
J2:J3 5 in J2, 8 in J3 Right-hand-side vector b.

Select a blank output area before entering each formula. Never overwrite these input ranges with array-formula results. Use one clean worksheet per guide, or reset your worksheet to this exact baseline before moving between scenarios.

Expected results, independently checked (not native execution)

Output placement Formula to enter Expected numerical result Rationale
G2 =MDETERM(A2:B3) 1 2×2 determinant: 2×2 − 1×3 = 1.
G3 =MDETERM(D2:E3) -3 1×5 − 4×2 = −3.
G4 =MDETERM(A6:C8) 1 3×3 determinant by cofactor expansion / symbolic determinant.
G5 =MDETERM(A11:B12) 0 Row 12 is twice row 11: singular matrices have determinant zero.
G6 =MDETERM(A14:B15) 6 Diagonal determinant 2×3.
G7 =MDETERM(A2) 2 Mathematical 1×1 determinant; native single-cell argument behaviour to confirm.
G8 =MDETERM(A2:B3)*MDETERM(D2:E3) -3 Product of two determinants (separate documented function calls).
G9 =MDETERM(A2:B3)*MDETERM(A2:B3) 1 Expected det(A²)=det(A)² for the sample.
G10 =MDETERM(A2:A3) Vendor documents #VALUE! Non-square 2×1 range: documented shape error; do not treat this as a numerical calculation.
G11 =MDETERM(A2:B3)*0 0 Scaling scalar result by zero is an arithmetic check, not a new matrix operation.

Each displayed matrix is written as rows inside [[...],[...]]. For example [[2,-1],[-3,2]] means output row one 2, -1 and output row two -3, 2; it is not a formula literal to paste into the spreadsheet. Fill the indicated output rectangle using the actual formula, not by typing the expected array. These predictions were calculated with exact rational SymPy mathematics and do not represent measurements from ONLYOFFICE.

Advanced application and reasoning

For a small 2×2 matrix [[a,b],[c,d]], calculate ad−bc by hand and compare the result to MDETERM. To check invertibility, use =MDETERM(A2:B3) and inspect whether its result is far from zero relative to the scale of your data. Do not classify a floating-point result merely by =0 when conditioning is poor: an ill-conditioned matrix may have a tiny nonzero determinant even when inversion is numerically unreliable. As another matrix identity, det(AB)=det(A)det(B) can be tested with =MDETERM(A2:B3)*MDETERM(D2:E3) and, separately, =MDETERM(MMULT(A2:B3,D2:E3)) as an advanced editor test, not a claimed observed result. The independent expectation for both sides with our dataset is −3.

Troubleshooting: symptoms versus documented behaviour

Symptom Likely cause Specific action / evidence boundary
#N/A Empty or nonnumeric cell in the numeric matrix Officially documented; inspect the input cells and replace text or blanks with numeric values.
#VALUE! Matrix is not square Officially documented; make rows equal columns.
Unexpected small nonzero determinant Poor conditioning, rounding, or different data Check source numbers and evaluate tolerance; no native precision threshold documented.
Wrong positive/negative sign Swapped rows, omitted minus sign in manual calculation Inspect matrix orientation and compare against ad-bc.

Verification and compatibility

This guide is based on the current, unversioned English ONLYOFFICE help pages on 2026-10-13 (UTC) and independent numerical reasoning. The sample values below are expected values, not results observed in a running ONLYOFFICE Spreadsheet Editor. No screenshot, workbook execution, web edition test, Desktop edition test, or historic version support test was performed. Use the official function catalogue.

Edition and compatibility: ONLYOFFICE’s documentation describes the current Docs Spreadsheet Editor; its Desktop changelog and Docs changelog are distinct records. None of the cited function pages establishes a first-supported Desktop or web version for this function; do not infer universal historical compatibility or claim that an XLSX exported to another spreadsheet program evaluates identically. Where a function returns an array, the current ONLYOFFICE array-entry guide explicitly describes selecting the complete output range, entering the formula and pressing Ctrl+Shift+Enter. Do not manually type the surrounding { }. In some editions, dynamic-array behaviour may differ and must be tested.

Formula language and separators: The examples use English names, A1-style references, a decimal point, and commas between arguments. The official function-entry guide shows these conventions. The Advanced Settings guide documents configurable formula language, region and numeric separators; it does not provide a verified translation or formula argument separator for every locale. Change regional settings as appropriate and verify the resulting formula entry in the target edition rather than blindly substituting commas with semicolons.

Official evidence checked on 2026-10-13 (UTC)

Specific claim ONLYOFFICE official reference Validation status
Purpose, exact function syntax and required arguments MDETERM reference Documentation checked; no app run
Input errors, argument shape/domain and array declaration, where given MDETERM reference Only vendor-stated cases are called native errors
Select output range and use Ctrl+Shift+Enter for multi-cell array output Inserting array formulas Documentation checked
Enter names, arguments and ranges as spreadsheet formulas Inserting functions Documentation checked
Locale and formula-language settings Advanced settings Documentation checked; exact translations not inferred
Desktop vs Docs/web historical support Desktop changelog and Docs changelog A first-supported release is not established by these checks
All numeric examples Independent exact-rational mathematical calculation Expected, not native ONLYOFFICE output