Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Determining the Least Common Multiple.

Determining the Least Common Multiple

by Allen Wyatt
(last updated November 16, 2016)

3

Remember your junior-high math classes? The teacher would write three or four numbers on the chalkboard and ask you to determine what larger number each of the numbers on the board could be a factor of. For instance, if the numbers were 2, 3,and 4, then the are all factors of the number 12. Thus, 12 is the least common multiple of those three numbers.

Things got really difficult when the teacher threw up six, seven, or ten numbers. Yikes! Fortunately, Excel makes calculating the least common multiple rather easy. All you need to do is put the numbers in a range of cells, and then use a formula like this:

=LCM(C20:C23)

In just a jiffy Excel returns a value that, sure enough, would have made that math teacher proud.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (5833) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Determining the Least Common Multiple.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Quickly Deleting Words

Tired of pressing the Delete or Backspace key for every character you want to delete? Here's a way you can make your editing ...

Discover More

Weird Actions for Arrow Keys and Enter

If your arrow keys and the Enter key aren't working as you expect them to, the problem could have any number of causes. This ...

Discover More

Removing a Tile from the Start Screen

The Start screen is a busy place in Windows. If it is too busy for your tastes, you can easily remove any of the tiles it ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Using a Cell Value as a Worksheet Name in a Formula

Excel allows you to easily develop formulas that pull values from worksheets and workbooks other than the one in which you ...

Discover More

Outstanding Macro Function Reference

Looking for a great reference that you can use to help figure out the various worksheet functions available in Excel? Here's ...

Discover More

Using the FORECAST Function

Excel provides a handy worksheet function that allows you to forecast values based upon a set of known values. This function, ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine more than 9?

2016-11-16 09:00:04

Shandor

Functions are the main key to success not only in Excel, but all computer applications. Until IBM Watson enables us to ask like the Star Trek crew "Computer, tell me what..." we could use more powerful formula builders to minimize the need for burdensome coding and macros. And regular expressions could be put to work if such builders were created, emphasizing common sense and user experience. Just sayin'!


2016-11-16 08:42:51

Michael (Micky) Avidan

@Tony N
What's interesting is the fact that every help reference to that function states (quote):
"If value is not an integer, it is truncated".
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)
ISRAEL


2016-11-16 07:05:42

Tony N

Interestingly if you put a non integer number in the range, rather than give an error the LCM function ignores anything to the right of the decimal point


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.