Lcm
LCM Function¶
The LCM function in Excel is used to calculate the Least Common Multiple (LCM) of integers. The LCM is the smallest
positive integer that is divisible by all the provided numbers. This function is particularly useful in scenarios
involving fractions, scheduling, or finding common intervals.
Syntax:¶
LCM(number1, [number2], ...)
- number1, number2, ...: Integer values (or references to cells containing integers) for which you want to find the Least Common Multiple. You can input up to 255 arguments in modern versions of Excel.
Examples:¶
-
=LCM(4, 5)
Returns20, as20is the smallest number divisible by both4and5. -
=LCM(3, 6, 9)
Returns18, since18is the smallest positive number divisible by3,6, and9. -
=LCM(A1:A3)
IfA1=8,A2=12, andA3=15, the function returns120. -
=LCM(7, 11)
Returns77, as these numbers share no common factors except1. -
=LCM(10, 5, 20)
Returns20, as20is divisible by10,5, and itself.
Usage Notes:¶
- All provided arguments must be integers or references to cells containing integers. If a non-integer or negative number is included, Excel will convert it to its absolute integer value.
- If any argument evaluates to
0, the result will always be0. - The
LCMfunction is helpful in mathematical computations such as finding a common denominator in fractions, or when synchronizing processes or events with different intervals.