Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Rounding to the odd

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lonnie - 25 Jul 2007 09:26 GMT
In meteorology it is the custom to round decimal numbers ending in .5  to the odd. For instance 2.55 becomes 2.3, while 2.35 also becomes 2.3. In Excel they are always rounded up, does anyone know a formulae that will correct this so that they are 'thrown' to the odd.
TIA
Lonnie
Jerry W. Lewis - 25 Jul 2007 12:26 GMT
Rounding is a bit tricky.  Computers do binary math which complicates
identifying numbers whose decimal fractions exactly end in 5, since most such
decimal fractions have no exact binary representation and must be
approximated.  As a result, a single worksheet formula is unlikely to perform
as expected in every instance.  If you can deal with a user defined function
written in VBA (you can call it from worksheet cells as though it was a
worksheet function), then the one that I posted at
http://groups.google.com/group/microsoft.public.excel.programming/msg/0d2dc7c322
cf4b3f

should do the trick.

Jerry

> In meteorology it is the custom to round decimal numbers ending in .5  to the odd. For instance 2.55 becomes 2.3, while 2.35 also becomes 2.3. In Excel they are always rounded up, does anyone know a formulae that will correct this so that they are 'thrown' to the odd.
> TIA
[quoted text clipped - 3 lines]
> ------=  Binary Usenet downloading made easy =---------
> -=  Get GrabIt for free from http://www.shemes.com/  =-
CLR - 26 Jul 2007 13:10 GMT
This may point some direction.....

=IF(ISEVEN(MID(A1,FIND(".",A1,1)+1,1)),ROUNDUP(A1,1),ROUNDDOWN(A1,1))

BTW, what criteria do you use to ROUND 2.55 to 2.3?

Vaya con Dios,
Chuck, CABGx3

> In meteorology it is the custom to round decimal numbers ending in .5  to the odd. For instance 2.55 becomes 2.3, while 2.35 also becomes 2.3. In Excel they are always rounded up, does anyone know a formulae that will correct this so that they are 'thrown' to the odd.
> TIA
[quoted text clipped - 3 lines]
> ------=  Binary Usenet downloading made easy =---------
> -=  Get GrabIt for free from http://www.shemes.com/  =-
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.