MUNIT Function in Excel: Identity Matrix

⏱ 1 min readUpdated 28 September 2026

MathLevel: ExpertAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

MUNIT returns an identity matrix — 1s on the diagonal, 0s elsewhere. Handy for checking MINVERSE results.

Syntax

=MUNIT(dimension)
Argument What it means
dimension Size.

Examples

Example 1

=MMULT(A2:C4, MINVERSE(A2:C4)) = MUNIT(3)

All TRUE (allowing for rounding) if the inverse is right.

MINVERSE · MMULT

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong