LCM

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.

Syntax

LCM(number1,number2, ...)

Number1,number2, ...   are 1 to 29 values for which you want the least common multiple. If value is not an integer, it is truncated.

Remarks

Examples

LCM(5, 2) equals 10

LCM(24, 36) equals 72