Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. 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: Using the INT Worksheet Function.
by Allen Wyatt
(last updated November 21, 2015)
There are many times that you simply need to work with whole numbers. Excel provides a handy function, INT, for just such times. This function takes a single argument and returns the integer value of that argument. For instance, consider the following:
Using this formula, Excel returns a value of 12. You should be aware that INT always returns the next lower whole integer. This only seems odd when dealing with negative numbers. For instance, consider the following:
You may be tempted to believe that Excel would return a value of -43, but this would be wrong. When following the rule of always returning the next lower whole integer, Excel would return -44, which is the next integer lower than -43.21.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11762) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Using the INT Worksheet Function.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Excel provides a handy worksheet function that allows you to forecast values based upon a set of known values. This ...Discover More
The DSUM function is very handy when you need to calculate a sum based on data that matches criteria you specify. If you ...Discover More
Need to know the character value of the first character in a string? It's easy to do, without using a macro, by using the ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.