+ Reply to Thread
Results 1 to 8 of 8

Pie Chart Displaying Only Data Where a Condition is Met

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Pie Chart Displaying Only Data Where a Condition is Met

    I have the following excel data where each row reprsents a task assigned to an individual. I need to display a pie chart to show the proportion of these outstanding tasks for each individual where the task has not been completed. That is, I only want the chart to display data where Col B is "No".

    COL A | COL B
    Assigned To | Completed
    John | No
    Amy | No
    Bill | No
    John | Yes
    John | No
    Amy | No


    More individuals are also being added all the time. I therefore need a solution that examines col A to count the number of incomplete assigned tasks for each individual, ideally without having to manually add another row to another table with entries for each individual with a cell to COUNT each.

    In summary, I need a pie chart that displays, in the example above, the 5 relevant entries (where "No" applies), showing 2/5 for John, 2/5 for Amy and 1/5 for Bill. But then I need to be able to add new entries, say for "Sarah" and for the pie chart to instantly reflect this: 2/6 John, 2/6 Amy, 1/6 Bill, 1/6 Sarah

    I hope this is clear. Any questions, please ask. Thank you.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    have you tried a pivot chart?

    also just be aware that pie charts are not generally well regarded in the world of data visualization :-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    Quote Originally Posted by JosephP View Post
    have you tried a pivot chart?

    also just be aware that pie charts are not generally well regarded in the world of data visualization :-)
    No, have not tried a pivot chart. I'm not sure how to be honest. Any advice please?

    I'v been asked to create a pie chart.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    select the data
    choose insert tab, then pivot chart (from the pivot table dropdown)
    follow the wizard to create the pivot table and chart where you want them
    change the chart type to pie
    drag the 'Assigned to' field to the axis area
    drag the Completed field from the list to the value area
    drag the Completed field from the list again but this time to the report filter area and then select the No value using the dropdown on the chart
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    Quote Originally Posted by JosephP View Post
    select the data
    choose insert tab, then pivot chart (from the pivot table dropdown)
    follow the wizard to create the pivot table and chart where you want them
    change the chart type to pie
    drag the 'Assigned to' field to the axis area
    drag the Completed field from the list to the value area
    drag the Completed field from the list again but this time to the report filter area and then select the No value using the dropdown on the chart
    Your attached example is just what I'm trying to do. I can't thank you enough. I'm just struggling to repeat your steps within Excel 2003 (sorry, should have noted this previously). I can't see where the report filter area is. Thanks again.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    in 2003 that was called the page field area

  7. #7
    Registered User
    Join Date
    03-26-2012
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    Many thanks for all your help.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Pie Chart Displaying Only Data Where a Condition is Met

    you're welcome :-)

    please don't forget to mark the thread solved (click the 'thread tools' link at the top, then 'mark solved')

+ 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