1. Home
  2. Functions
  3. Math
  4. MUNIT

MUNIT function

Returns the identity matrix of a given size.

Syntax

=MUNIT(dimension)

Arguments

ArgumentRequiredDescription
dimensionRequiredThe number of rows and columns

How to use MUNIT

When MUNIT returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

MUNIT takes 1 required argument. Type =MUNIT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MUNIT(2)Result 2 by 2 array
Spilled result
AB
110
201
=MUNIT(0)Result #VALUE!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.