Returns the least common multiple of integers. The least common multiple is the smallest positive integer that is a multiple of all integer arguments number1, number2, and so on. Use LCM to add fractions with different denominators.
If this function is not available, run the Setup program to install the Analysis ToolPak. After you install the Analysis ToolPak, you must enable it by using the Add-Ins command on the Tools menu.
Number1,number2, ... are 1 to 29 values for which you want the least common multiple. If value is not an integer, it is truncated.
- If any argument is nonnumeric, LCM returns the #VALUE! error value.
- If any argument is less than one, LCM returns the #NUM! error value.
LCM(5, 2) equals 10
LCM(24, 36) equals 72