## Excel LCM Function

The LCM function calculates the least common multiple of integers. The least common multiple is the smallest positive integer that can be divided by all the numbers provided.

#### Syntax

=LCM (number1, [number2], ...)

#### Arguments

• Number1 (required): The first number.
• Number2, ... (optional): The subsequent numbers.

#### Return value

The LCM function returns a positive numeric value.

#### Function notes

1. Arguments in the LCM function should be supplied as numeric values. Up to 255 arguments are allowed.
2. Integers are preferred in the arguments. If any of the supplied arguments are non-integer numbers, the LCM function will truncate them to integers.
3. LCM function will return the #VALUE! error if any of the supplied arguments are non-numeric.
4. LCM function will return the #NUM! error if:
• any argument < 0
• returned result ≥ 2^53

#### Examples

To get the least common multiple of integers in the below table, please copy the formulas below into cell G4, G5, G6 and G7 respectively and press the Enter key to get the results.

=LCM (B4:C4)

=LCM (B5:C5)

=LCM (B6:D6)

=LCM (B7:E7)

Notes:

1. The argument in the above formula is supplied as a range that contain multiple values.
2. We can directly input values in the arguments of the formula. For example, in cell G7, the formula can be changed to:

=LCM (9, 12, 8, 24)

3. We can also use cell references as arguments of the formula. For example, in cell G7, the formula can be changed to:

=LCM (B7, C7, D7, E7)

4. If there is a blank cell or the number “0” in the supplied arguments, it returns the result of 0.

#### Relative Functions:

• Excel EVEN Function
The EVEN function rounds numbers away from zero to the nearest even integer.

• Excel EXP Function
The EXP function returns the result of the constant e raised to the nth power.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.