Syntax
=MUNIT(dimension)Arguments
| Argument | Required | Description |
|---|---|---|
dimension | Required | The 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 Spilled result
| A | B | |
|---|---|---|
| 1 | 1 | 0 |
| 2 | 0 | 1 |
=MUNIT(0)Result Related math functions
- MODReturns the remainder after dividing a number by a divisor; the result has the sign of the divisor.
- MROUNDRounds a number to the nearest multiple of another number.
- MULTINOMIALReturns the factorial of a sum of values divided by the product of their factorials.
- MULTIPLYReturns the product of two numbers, like the * operator.
- ODDRounds a number away from zero to the nearest odd integer.
- PIReturns the number pi, 3.14159265358979.
- POWERReturns a number raised to a power.
- PRODUCTMultiplies numbers and the numbers in ranges.
- QUOTIENTReturns the whole number part of a division.