Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In Excel .5 is always rounded up when the decimal places are reduced, ie. 3.55 becomes 3.6, 3.65 becomes 3.7 etc. I need a formula that will "throw .5 to the odd" so that 3.55 would become 3.5, 3.65 would become 3.7 etc. Someone kindly supplied this yesterday Assuming your numbers are in column A, try this formula in column B =IF(A1-FLOOR(A1,1)<=0.55,FLOOR(A1*10,1)/10,ROUND(A1,2)) but unfortunately the formula doesn't "throw to the odd", I know that "throwing to the even" is called 'bankers rounding' and there is no function in Excel that supports this. Throwing to the odd is commonly used in meteorology when working out average temperatures' eg. 12.5 + 3.8 = 16.3 when divided by 2 to give the average it results in 8.15, when rounded to one decimal place Excel rounds this up to 8.2 when the figure should be 8.1. It is possible to do this manually but this can lead to errors. Any further help appreciated. Thanks - Kirk |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ROUNDING FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH | Excel Worksheet Functions | |||
Rounding Question | Excel Worksheet Functions | |||
I need a formula with rounding up & rounding down to the nearest . | Excel Worksheet Functions | |||
Rounding Question | Excel Worksheet Functions | |||
rounding question | Excel Discussion (Misc queries) |