Get the least common multiple or two or more numbers
A number that represents the least common multiple of all numbers
=LCM (number1, [number2], …)
- number1 – The first number.
- number2 – [optional] The second number.
Use the LCM function when you want to calculate the least common multiple of integers. The least common multiple is the smallest positive integer that is a multiple of all of the numbers supplied as arguments. A common use of the LCM function is to add fractions that have different denominators.
For example, =LCM(3,4) returns 12, since 12 is the smallest multiple of both 3 and 4. However, =LCM(3,4,5) returns 60, since 60 is the smallest multiple of all three numbers.