The Excel LCM function returns the least common multiple of two or more supplied integers.
The syntax of the function is:
Where the number arguments are up to 255 numeric values for which you want to calculate the least common multiple.
If any of the supplied numbers are decimals, these values are truncated to integers.
The following spreadsheet shows four examples of the Excel Lcm Function.
Formulas:
|
Results:
|
Further details and examples of the Excel Lcm function are provided on the Microsoft Office website.
If you get an error from the Excel Lcm function this is likely to be one of the following:
#NUM! | - | Occurs if any of the supplied number arguments are less than zero. |
#VALUE! | - | Occurs if any of the supplied number arguments are non-numeric. |