Note: The other languages of the website are Google-translated. Back to English

Excel MUNIT Function

The MUNIT function creates a unit matrix for a given specified dimension.

munit function 1


Syntax

=MUNIT(dimension)


Arguments

  • dimension (required): An integer specifying the dimension of the unit matrix that you want to return.

Return Value

The MUNIT function returns a unit matrix.


Function Notes

  • If you are using the Excel versions that are prior to Microsoft 365, you should select the output range first, then enter the MINVERSE formula in the top-left-cell of the output range, and then press Ctrl + Shift + Enter to apply the function. For the users of Microsoft 365 and newer versions of Excel, you can just enter the formula in a cell, and then press Enter.
  • If you set dimension as 3, then the size of the output range you selected should be 3 x 3.
  • MINVERSE will return the #N/A error if the cells you selected that are outside the range of the resulting matrix.
  • MDETERM will return the #VALUE! error if dimension ≤ 0.
  • MINVERSE will return the #NAME? error if dimension is not a numeric value.

Example

Supposing you are using one of the Excel versions that are prior to Microsoft 365, to create a unit matrix with the dimension of 4, please select an output range with the size of 4 x 4, then copy or enter the formula below in the top-left-cell of the output range, and press Ctrl + Shift + Enter to get the result:

=MUNIT(4)

munit function 2


Related functions

Excel MINVERSE Function

The MINVERSE function returns the inverse matrix of a given array.

Excel MMULT Function

The Excel MMULT function returns the matrix product of two arrays. The array result has the same number of rows as array1 and the same number of columns as array2.

Excel MDETERM Function

The MDETERM function returns the matrix determinant of an array.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL