Returns the least common multiple of integers.
Syntax
LCM(number1, [number2], ...)Argument
number1obligatoriskt
The first number or range of numbers for which you want the least common multiple.
number2valfritt
Additional numbers for which you want the least common multiple.
The LCM function calculates the smallest positive integer that is a multiple of all argument numbers. It is commonly used for adding fractions with different denominators or scheduling recurring events.
=LCM(5, 2)→10The smallest number divisible by both 5 and 2 is 10.
=LCM(4, 6, 8)→24The smallest number divisible by 4, 6, and 8 is 24.
Select a cell
Click on the cell where you want to display the result.
Enter the formula
Type =LCM( followed by your numbers separated by commas, then close the parenthesis.
The LCM function truncates non-integer values to integers.