Excel has a built in function to calculate Least Common Multiple (LCM) of two or more integers. The function is also called LCM.
=LCM(number1, [number2], …)
- Start with =LCM(
- Type or select cells or range that includes integers B6:E6
- Type ) to close the function and press Enter to complete formula
The LCM function does exactly what its name refers, returns the least common multiple of selected numbers. Its 1st argument is mandatory and others are optional. It can get up to 255 numbers as arguments.
Alternatively, you can choose to use range references for adjacent cells.
Please note that the LCM function only works with integers. The negative numbers causes #NUM! error. Also, if the return value is equal or greater than 2^53, the function returns #NUM! error as well.
Also see related article how to calculate Greatest Common Divisor (GCD).