+ Reply to Thread
Results 1 to 7 of 7

Creating Pie Chart from Conditional formatted data

  1. #1
    Registered User
    Join Date
    07-31-2018
    Location
    Oxford, England
    MS-Off Ver
    Office 365
    Posts
    4

    Creating Pie Chart from Conditional formatted data

    Wonder if anyone can help me out with a problem I have. Thought it would be simple but I'm stuck

    I have a series of data - this data is a series of percentage data for the success rate of different jobs in a production environment.

    To this data i have applied conditional formatting so that value less than 86% have a red background, those between 87 & 97% are orange, with those 98& and above green.

    All I want to do is to create a simple 3 colour pie chart that can be printed out based on a weeks data so that production staff can see improvements (or otherwise) in the quality of their work.

    Can anyone help. Really thought this would take me 5 minutes but no

    Many thanks in advance

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Creating Pie Chart from Conditional formatted data

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    07-31-2018
    Location
    Oxford, England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Creating Pie Chart from Conditional formatted data

    Please see the attached spreadsheet with a small sample of data. Hopefully this shows enough

    Again thanks in advance
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Creating Pie Chart from Conditional formatted data

    I don't see any dates with this data nor do I see categories. Is this just one week's data? And what is it that you want to see - is it a count of how many red, orange and green that you have?

  5. #5
    Registered User
    Join Date
    07-31-2018
    Location
    Oxford, England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Creating Pie Chart from Conditional formatted data

    The data is just a generated set for now

    I'm after the general principle / formula / approach I will be able to adjust things afer that

    I'm looking to create a pie chart showing Red. Orange and Green segments. To be used to show production staff on a weekly basis a simple graphical representation of the quality of their amount in the previous week / month / quarter

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Creating Pie Chart from Conditional formatted data

    First of all, I converted the data to an Excel table. Some of the advantages of excel tables are:

    They "know" how big they are so formulas, charts and pivot tables build from them do not have to change as rows are added or deleted. These items will always reference exactly the right amount of data.

    They "remember" and copy down formulas, validations, formats (including conditional formats) automatically. So you don't have to extend these items into unused rows or columns.

    In the example you gave me, I added a helper column with the formula: =IF([@[Success %]]>=98,"Green",IF([@[Success %]]>=87,"Orange","Red"))

    value less than 86% have a red background, those between 87 & 97% are orange, with those 98& and above green
    You have gaps in your coverage. What value do you want to use for 86.5% or 97.5%? However, even if you always have whole numbers, the formula still works.

    I built a pivot table from this table and a pie chart based on the pivot table and manually adjusted the data points to the appropriate colors. They should stay that way.

    To use the workbook, highlight a column(s) of data in the table (rows 2 on down). Right click and select Delete -> Table Rows. If you see Delete -> Entire row, you have filtered the data. Take the filter off.

    Then copy your new data and paste it into cell B2. The Excel table will do the rest, filling in the conditional formatting (I took the liberty of rewriting these too) and copying down the formula.

    You may have to refresh the pivot table, Right click on it and select Refresh.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-31-2018
    Location
    Oxford, England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Creating Pie Chart from Conditional formatted data

    perfect

    Many thanks for your assistance.

    Should be able to continue with my project now - well it's my partner's project but normally i can sort pretty much anything in Excel - really need to improve my pivot table skills though

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating Excel column chart with seperate formatted column
    By PerceptionExcel in forum Excel General
    Replies: 4
    Last Post: 07-08-2018, 05:53 AM
  2. Collecting the data from conditional formatted cells
    By c.prabhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 05:40 AM
  3. Bar chart columns empty when data array is formatted as percents.
    By bberger1985 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 12:16 PM
  4. Replies: 6
    Last Post: 04-10-2013, 11:02 PM
  5. Linking formatted chart to pivot table data
    By vlag in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-23-2013, 10:29 AM
  6. Replies: 4
    Last Post: 09-20-2012, 01:58 PM
  7. [SOLVED] Dynamically creating formatted tables from raw data
    By Taylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2005, 09:05 PM

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