
Tips.Net > ExcelTips Home > Worksheet Functions > Math and Trig Functions > Using the INT Worksheet Function
Summary: The INT function is used to return the integer portion of a value—the part to the left of the decimal point. It is similar to the TRUNC function, but it always returns the next lower integer value, which becomes important when working with negative values. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
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:
=INT(12.34)
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:
=INT(-43.21)
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.
Tip #2150 applies to Microsoft Excel versions: 97 2000 2002 2003
PivotTables Got You Perplexed? ExcelTips: PivotTables for the Faint of Heart shows how you can start using Excel's PivotTable tool right away to spin your data into gold! You discover how easy it really is to crunch the numbers you need to crunch. Uncover the power of the PivotTable Wizard, how to edit PivotTables, how to format them, how to customize them, and much more.
Check out ExcelTips: PivotTables for the Faint of Heart today!
You can put times into a worksheet, but then what? Need to do calculations with times? How about working with elapsed time? Don't be confused; learn how easy it can be. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site