Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Rounding Issue

Status
Not open for further replies.

asmall

Programmer
Dec 26, 2002
31
US
How can I stop Excel from rounding decimals up or down?
 
use the INT function. This should give you just the integer part of the number.
 
Format the cells as Number and set the amount of decimal places you want.
 
asmall,

Please keep in mind that cell FORMATTING does not change the VALUE in the cell -- it just changes how it LOOKS.

If you want a value ROUNDED to a specified number of digits, you actually need to CHANGE THE VALUE.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I don't want just the integer part to be shown.
For instance, I'm doing accounting spreadsheets and if i have a value of 1,754.987. I don't want Excel to round it to 1,754.99. I want the value to be 1,754.98.
 


=INT(100*A1)/100 should do it. (For a value in A1 of course.)
 

D'oh - A second earlier and it would have looked like Skip had copied me!!!
 
=ROUNDDOWN(A1,2)where A1 is your value.

Regards
Peter Buitenhek
Profit Developer.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top