TX Sheet Control

LCM Function

Function

Return the least common multiple of integers. number1, number2 and further arguments, up to 255, are truncated to integers first. A negative number returns #NUM!, and 0 returns 0.

Syntax

LCM(number1, number2)

Category: Math. Minimum arguments: 1. Maximum arguments: 255.

Available for supported offline calculation.

Examples

=LCM(12,18)

The formula returns 36, the smallest number that both 12 and 18 divide.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also