The Excel LCM Function

Related Function:
GCD Function

Basic Description

The Excel LCM function returns the least common multiple of two or more supplied integers.

The format of the function is :

LCM( number1, number2, ...)

Where the number arguments are up to 255 numerical values for which you want to calculate the least common multiple.

If any of the supplied numbers are not integers, these values are truncated to integers.


LCM Function Examples

Column A of the spreadsheet below, shows examples of the Excel Lcm Function.

The formulas are shown in the spreadsheet on the left and the results are shown in the spreadsheet on the right.

 Formulas:
  A
1 =LCM( 1, 5 )
2 =LCM( 15, 10, 25 )
3 =LCM( 1, 8, 12 )
4 =LCM( 7, 2 )
 Results:
  A
1 5
2 150
3 24
4 14

Further information and examples of the Excel Lcm function can be found on the Microsoft Office website.


LCM Function Common Errors

If you get an error from your Excel Lcm function this is likely to be one of the following :

Common Errors
#VALUE! - Produced if one of the supplied number arguments is non-numeric
#NUM! - Produced if any of the supplied number arguments is less than zero.
Return to the Excel Math Functions Page

Return to the List of All Built-In Excel Functions

Valid XHTML 1.0 Transitional Valid CSS!
Disclaimer   Privacy Policy
Copyright © 2008-2013 ExcelFunctions.net