Syntax
=LCM(number1, [number2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
number1 | Required | The first number or range |
number2 | Optional | More numbers or ranges |
How to use LCM
LCM takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =LCM( 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.
=LCM(5, 2)Result =LCM(24, 36)Result Related math functions
- FLOOR.PRECISERounds a number down to the nearest multiple, whatever the sign of the number or significance.
- GCDReturns the greatest common divisor of whole numbers.
- INTRounds a number down to the nearest integer.
- ISO.CEILINGRounds a number up to the nearest multiple, whatever the sign of the number or significance.
- LNReturns the natural logarithm of a number.
- LOGReturns the logarithm of a number to the base you choose (10 when left out).
- LOG10Returns the base 10 logarithm of a number.
- MDETERMReturns the determinant of a square matrix.
- MINUSReturns the difference of two numbers, like the - operator.