
Returns the determinant of a square numeric matrix. Use it to check whether a matrix can be inverted before moving on to MINVERSE.
MDETERM returns the determinant of a square matrix. In Excel terms, that means you give it a square block of numbers like a 2x2 or 3x3 range, and it gives you one number back.
That number is mainly useful as a checkpoint. If the determinant is 0, the matrix cannot be inverted, so formulas like MINVERSE will fail. That is why MDETERM is often the first thing to run when you are building a matrix model.
Helps you test whether a square matrix is suitable for inverse-based calculations.
The result is a single numeric value, even when the input range is a larger square matrix.
=MDETERM(array)
The array must be numeric and square. Microsoft notes that MDETERM returns #VALUE! if the range contains blanks or text, or if the number of rows and columns does not match.
These matrix functions work together, but they do different jobs. MDETERM is the quick check. The others do the heavier matrix operations after that.
| Function | Main job | Returns | Use it when |
|---|---|---|---|
MDETERM |
Gets the determinant | One number | You want to test whether a matrix is invertible |
MINVERSE |
Gets the inverse matrix | An array | You need the inverse of a square matrix |
MMULT |
Multiplies matrices | An array | You need a matrix product |
MUNIT |
Builds an identity matrix | An array | You need a neutral matrix for testing or setup |
The most common use is simple. Run MDETERM before MINVERSE. If the result is 0, stop there because the matrix does not have an inverse. That saves you from chasing a #NUM! error later.
It also helps when you want to understand the matrix itself a little better. In many practical Excel models, you do not need to calculate the determinant by hand. You just need to know whether it is zero, non-zero, or so close to zero that the matrix is unstable. Microsoft also notes that the function is calculated with about 16 digits of accuracy, so a singular matrix can sometimes show a tiny leftover like 1E-16 instead of a perfect 0.
This is the simplest version. You point to a square 2x2 range and Excel returns one value.
=MDETERM(B2:C3)
Calculate the determinant of a 2x2 matrix in B2:C3. Formula: =MDETERM(B2:C3).
The formula does not change when the matrix gets bigger. As long as the range stays square, MDETERM can evaluate it.
=MDETERM(B2:D4)
Find the determinant for the 3x3 array in B2:D4. Formula: =MDETERM(B2:D4).
If the determinant is not 0, the matrix can be inverted. That makes this a practical gate before using MINVERSE.
=MDETERM(B2:C3)<>0
Check if the matrix in B2:C3 is invertible (Determinant <> 0). Formula: =MDETERM(B2:C3)<>0.
Because the result is a single number, you can scale it, compare it, or plug it into another formula without extra handling.
=MDETERM(B2:C3)*10
Multiply the determinant of B2:C3 by 10. Formula: =MDETERM(B2:C3) * 10.
MDETERM returns the determinant of a square numeric matrix.MINVERSE.#VALUE! appears when the range is not square or contains blanks or text.Tell your friends about this post