Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Rounding to the odd

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


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 837
Default Rounding to the odd

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/micro...2dc7c322cf4b3f
should do the trick.

Jerry

"Lonnie" wrote:

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


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-


  #3   Report Post  
Posted to microsoft.public.excel.newusers
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Rounding to the odd

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



"Lonnie" wrote:

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


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
ROUNDING Bill Ridgeway New Users to Excel 9 April 7th 07 03:04 AM
Rounding up or down Kevin Excel Discussion (Misc queries) 4 January 22nd 07 12:51 PM
Rounding Richard Excel Worksheet Functions 1 January 18th 06 05:51 PM
rounding up after SUM fbcmusicmark Excel Worksheet Functions 4 January 3rd 06 09:31 PM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"