#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andreas Håkansson
 
Posts: n/a
Default Rounding

Hi

I want to use (I think it's called) bankers rounding on a number. What I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jerry W. Lewis
 
Posts: n/a
Default Rounding

=ROUND(n,-6) will round to the nearest million by the method where 5 always
rounds up.

What Microsoft calls "Banker's Rounding" (for reasons that are unclear to
me, since I have seen no evidence that bankers have ever used it) is the
rounding method specified by the ASTM standard, that rounds to the nearest
rounded number, with ties (exactly 5) resolved by rounding either up or down
to produce an even final rounded digit. For example, 2500000 would round
down to 2000000. Since this tends to balance the number of times that you
round up vs. down, it is sometimes called "unbiased rounding"

The workseet round function does not do Banker's Rounding. The VBA round
function incompletely implements Banker's Rounding (it does not accept a
negative number of decimal places to round to; are needed to round to the
nearest million). I gave a user defined function written in VBA which fully
implements Banker's Rounding at
http://groups.google.com/group/micro...7fce6145b70d69

Jerry

"Andreas HÃ¥kansson" wrote:

Hi

I want to use (I think it's called) bankers rounding on a number. What I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin
 
Posts: n/a
Default Rounding

You need CEILING:
=CEILING(9700000,1000000) rounds up to nearest million

"Andreas HÃ¥kansson" wrote:

Hi

I want to use (I think it's called) bankers rounding on a number. What I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin
 
Posts: n/a
Default Rounding

Please use Jerry's solution - mine always rounds up (I just saw your last
example).

"Martin" wrote:

You need CEILING:
=CEILING(9700000,1000000) rounds up to nearest million

"Andreas HÃ¥kansson" wrote:

Hi

I want to use (I think it's called) bankers rounding on a number. What I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andreas Håkansson
 
Posts: n/a
Default Rounding

Hehe, actually my last examples round down ;)

"Martin" skrev i meddelandet
...
Please use Jerry's solution - mine always rounds up (I just saw your last
example).

"Martin" wrote:

You need CEILING:
=CEILING(9700000,1000000) rounds up to nearest million

"Andreas Håkansson" wrote:

Hi

I want to use (I think it's called) bankers rounding on a number. What
I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andreas Håkansson
 
Posts: n/a
Default Rounding

Thanks! =)

"Jerry W. Lewis" skrev i meddelandet
...
=ROUND(n,-6) will round to the nearest million by the method where 5
always
rounds up.

What Microsoft calls "Banker's Rounding" (for reasons that are unclear to
me, since I have seen no evidence that bankers have ever used it) is the
rounding method specified by the ASTM standard, that rounds to the nearest
rounded number, with ties (exactly 5) resolved by rounding either up or
down
to produce an even final rounded digit. For example, 2500000 would round
down to 2000000. Since this tends to balance the number of times that you
round up vs. down, it is sometimes called "unbiased rounding"

The workseet round function does not do Banker's Rounding. The VBA round
function incompletely implements Banker's Rounding (it does not accept a
negative number of decimal places to round to; are needed to round to the
nearest million). I gave a user defined function written in VBA which
fully
implements Banker's Rounding at
http://groups.google.com/group/micro...7fce6145b70d69

Jerry

"Andreas Håkansson" wrote:

Hi

I want to use (I think it's called) bankers rounding on a number. What I
want to do is round to the nearest whole million. So if I have

9 700 000 then it should be 10 000 000
1 500 000 then it should be 2 000 000
3 499 000 then it should be 3 000 000

if there any function in excel to do this?





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
Unwanted rounding of large number Candyman Excel Worksheet Functions 5 August 18th 05 12:32 AM
Rounding LaraHubbs Excel Discussion (Misc queries) 2 June 21st 05 09:42 PM
Percentage rounding error in charts Tracey Excel Discussion (Misc queries) 4 May 14th 05 04:01 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM
How do I make Excel stop rounding off my numbers that are 16 digi. Aida Excel Discussion (Misc queries) 1 December 6th 04 04:34 PM


All times are GMT +1. The time now is 08:18 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"