PC Review


Reply
Thread Tools Rate Thread

Bug in Rounding percentages of Bar of Pie chart

 
 
=?Utf-8?B?TXVyYXQgR3VsYmF5?=
Guest
Posts: n/a
 
      22nd Aug 2005
(Excel 2003)
Suppose sales values for January to June are 25,50,90,45,100, and 75,
respectively.
Bar of pie chart with a second plot containing the sales values whose
percentage values are less than 15%. The problem is that, Excel draws the pie
chart with a total percentage of 102 %. The percentage of the total sales
included in the bar is 33%. Now if you increase its decimal, it is seen that
its actual value is 31.2 %. How Excel 2003 rounds 31.2 % as 33 %. Now
changing sales value for April from 45 to 47, it is seen that bar percentage
becomes 34 %, and total percentage for the pie becomes 103 %... When
increasing the decimal for 34 % it has changed to 31.5 percent. Chart
percentages fail for some particular data like this.. Any comments about this?
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      22nd Aug 2005
What sort of comment do you want?
If I divide a pie in three part, father gets 33%, mother gets 33% and baby
get 33%. But that is only 99%; did Goldilocks eat the other 1%. Oh no, you
say, every one gets 33.333333% but that still adds to 99.999999%. This time
G gets a crumb.
When ever you make approximations, you get approximations.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Murat Gulbay" <Murat (E-Mail Removed)> wrote in message
news:948E7A02-0EF8-4E01-91F9-(E-Mail Removed)...
> (Excel 2003)
> Suppose sales values for January to June are 25,50,90,45,100, and 75,
> respectively.
> Bar of pie chart with a second plot containing the sales values whose
> percentage values are less than 15%. The problem is that, Excel draws the
> pie
> chart with a total percentage of 102 %. The percentage of the total sales
> included in the bar is 33%. Now if you increase its decimal, it is seen
> that
> its actual value is 31.2 %. How Excel 2003 rounds 31.2 % as 33 %. Now
> changing sales value for April from 45 to 47, it is seen that bar
> percentage
> becomes 34 %, and total percentage for the pie becomes 103 %... When
> increasing the decimal for 34 % it has changed to 31.5 percent. Chart
> percentages fail for some particular data like this.. Any comments about
> this?



 
Reply With Quote
 
=?Utf-8?B?TXVyYXQgR3VsYmF5?=
Guest
Posts: n/a
 
      22nd Aug 2005
This is not an aproximation, just an inconsequent way of rounding error. If
you perform same calculations by excel formulas in cells you never get such a
bombastic approximation error. In your case, the value shown as 33% becomes
33.3 % when you increase the decimal. Here, what the problem is that 31.5 %
becomes 34 % upon decreasing decimal or vice versa, which denies the
theoritical rounding rules. When calculated in cells it is normal and
correct. But charting the same values gives such kind of errors.

"Bernard Liengme" wrote:

> What sort of comment do you want?
> If I divide a pie in three part, father gets 33%, mother gets 33% and baby
> get 33%. But that is only 99%; did Goldilocks eat the other 1%. Oh no, you
> say, every one gets 33.333333% but that still adds to 99.999999%. This time
> G gets a crumb.
> When ever you make approximations, you get approximations.
> best wishes
> --
> Bernard V Liengme
> www.stfx.ca/people/bliengme
> remove caps from email
>
> "Murat Gulbay" <Murat (E-Mail Removed)> wrote in message
> news:948E7A02-0EF8-4E01-91F9-(E-Mail Removed)...
> > (Excel 2003)
> > Suppose sales values for January to June are 25,50,90,45,100, and 75,
> > respectively.
> > Bar of pie chart with a second plot containing the sales values whose
> > percentage values are less than 15%. The problem is that, Excel draws the
> > pie
> > chart with a total percentage of 102 %. The percentage of the total sales
> > included in the bar is 33%. Now if you increase its decimal, it is seen
> > that
> > its actual value is 31.2 %. How Excel 2003 rounds 31.2 % as 33 %. Now
> > changing sales value for April from 45 to 47, it is seen that bar
> > percentage
> > becomes 34 %, and total percentage for the pie becomes 103 %... When
> > increasing the decimal for 34 % it has changed to 31.5 percent. Chart
> > percentages fail for some particular data like this.. Any comments about
> > this?

>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      23rd Aug 2005
I read a discussion about this, how Excel violates rounding of three 33% segments so
the sum is 100%, not 99%. I remember thinking at the time, that it's worth adding a
digit of precision to avoid this behavior. I notice your numbers also work out fine
with an extra digit.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Murat Gulbay wrote:

> This is not an aproximation, just an inconsequent way of rounding error. If
> you perform same calculations by excel formulas in cells you never get such a
> bombastic approximation error. In your case, the value shown as 33% becomes
> 33.3 % when you increase the decimal. Here, what the problem is that 31.5 %
> becomes 34 % upon decreasing decimal or vice versa, which denies the
> theoritical rounding rules. When calculated in cells it is normal and
> correct. But charting the same values gives such kind of errors.
>
> "Bernard Liengme" wrote:
>
>
>>What sort of comment do you want?
>>If I divide a pie in three part, father gets 33%, mother gets 33% and baby
>>get 33%. But that is only 99%; did Goldilocks eat the other 1%. Oh no, you
>>say, every one gets 33.333333% but that still adds to 99.999999%. This time
>>G gets a crumb.
>>When ever you make approximations, you get approximations.
>>best wishes
>>--
>>Bernard V Liengme
>>www.stfx.ca/people/bliengme
>>remove caps from email
>>
>>"Murat Gulbay" <Murat (E-Mail Removed)> wrote in message
>>news:948E7A02-0EF8-4E01-91F9-(E-Mail Removed)...
>>
>>>(Excel 2003)
>>>Suppose sales values for January to June are 25,50,90,45,100, and 75,
>>>respectively.
>>>Bar of pie chart with a second plot containing the sales values whose
>>>percentage values are less than 15%. The problem is that, Excel draws the
>>>pie
>>>chart with a total percentage of 102 %. The percentage of the total sales
>>>included in the bar is 33%. Now if you increase its decimal, it is seen
>>>that
>>>its actual value is 31.2 %. How Excel 2003 rounds 31.2 % as 33 %. Now
>>>changing sales value for April from 45 to 47, it is seen that bar
>>>percentage
>>>becomes 34 %, and total percentage for the pie becomes 103 %... When
>>>increasing the decimal for 34 % it has changed to 31.5 percent. Chart
>>>percentages fail for some particular data like this.. Any comments about
>>>this?

>>
>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unwanted Rounding Percentages detailman Microsoft Access 3 23rd Jan 2009 08:09 PM
Need help with rounding percentages lat0782 Microsoft Excel Misc 2 18th Jun 2008 08:09 PM
not rounding percentages =?Utf-8?B?SmFzb24=?= Microsoft Access 1 8th Oct 2006 03:46 AM
Rounding percentages problem need a solution for =?Utf-8?B?amltdG1jZGFuaWVscw==?= Microsoft Excel Misc 2 27th Apr 2006 08:22 AM
Percentages/Rounding =?Utf-8?B?QW1hbmRh?= Microsoft Excel Worksheet Functions 2 17th Nov 2003 06:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.