+ Reply to Thread
Results 1 to 6 of 6

Display Second Data Set in a PieChart

  1. #1
    Registered User
    Join Date
    07-29-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    35

    Display Second Data Set in a PieChart

    Hello,

    I want to display all the following data into one pie chart. So far, I can easily make the pie chart (with only "Fruit and #") out of the data with vba, however I do not know how to (manually or by vba) add the "Avg Quality" number onto a data label.

    Secondly, I would like to add the # and the percentage of a particular fruit to the pie chart.

    Any ideas are greatly appreciated!



    HTML Code: 
    Last edited by kchen; 08-12-2010 at 11:30 AM.

  2. #2
    Registered User
    Join Date
    07-29-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Display Second Data Set in a PieChart

    Since posting, I've looked at quite a few websites that definitively say, "Pie charts cannot display two sets of data".

    For clarification, I have created a pie chart that displays the # of fruits in each category. What I want to add is a data label that also shows the "Avg Quality".

    Thanks for reading...and any ideas?

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Display Second Data Set in a PieChart

    Those sites are wrong.
    You can show 2 sets, although I would not recommend it.
    http://www.andypope.info/charts/pies.htm

    In your case it is simple a labeling issue. Why not incorporate the average number into the category label?

    Post example workbook of what you currently have.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    07-29-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Display Second Data Set in a PieChart

    Hi Andy,

    I have been trying to do just that. I can't find website/code information to incorporate "avg quality" into the data label.

    Here's the workbook.
    Attached Files Attached Files

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Display Second Data Set in a PieChart

    This formula in D2 and copied down.

    =A2& CHAR(10) & " (avg. " & C2 & ")"
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-29-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Display Second Data Set in a PieChart

    Thanks again andy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1