+ Reply to Thread
Results 1 to 12 of 12

Graphs based on Conditional Formatting

  1. #1
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Graphs based on Conditional Formatting

    Is there a way to develop a graph based on the conditional formatting in a column? I have multiple date columns that turn red or green based on if a task was accomplished on time or not. I need to be able to graph each one of the columns showing the percentage of times they meet or do not meet the milestones that are set. Looking for advise on best way to display the data.

    Thank you,

    Lynda

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    How much of this is specific to chart creation, and how much is more about how to calculate the data you need to show on the chart? Charts have essentially no calculating ability, so the first step, if I understand correctly, will be calculate the "meet/do not meet" results somewhere in the spreadsheet. It's not clear from your brief post how you are doing the conditional formatting. If you are using "format based on formula", then the formula you need in the spreadsheet will probably be similar to the formula you are using for your conditional formatting. Once you have calculated the desired data in the spreadsheet and arranged it properly (see here for a detailed discussion of how to arrange data in the spreadsheet for easy charting: https://peltiertech.com/good-chart-data/ ), then the chart should be easy to create.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Graphs based on Conditional Formatting

    I'm sorry if I was unclear. I have a current spreadsheet that uses formulas to determine the conditional formatting a date that is entered is less than or equal to 1 day from another date on the spreadsheet. I was asked if there is a way to show on a graph how many of them are green (meeting the formula) and how many are red (not meeting the formula). I am unsure what the formula will be to show each of the conditional results. I need it to show that 75% of the time, we are meeting the less than or equal to 1 day in a graph. Hope this helps clarify.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    If I understand correctly, you have a column of dates with a conditional format that says =date>otherdate-1 or something similar. Do you have somewhere in the spreadsheet where you are counting how many dates meet the criteria (perhaps a COUNTIFS() function like =COUNTIFS(dates,">"&otherdate-1)?

  5. #5
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Graphs based on Conditional Formatting

    No. Those are the formulas that I need to set that up. I can graph off of there. I am so appreciative of the help. It has been a long long time since I have had to develop formulas and just can't remember how. I know what I need it to do but I can't remember how to write them.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    It is going to be difficult to be specific without seeing how your raw data are set up. If you are unfamiliar with the COUNTIFS() function: https://support.microsoft.com/en-us/...rs=en-us&ad=us I would expect that you have all of your dates in a single column, and that you have the "reference date" somewhere else in the spreadsheet. From there it is a matter of understanding the exact logic you want to apply, then programming that logic into the COUNTIFS() function. As I said, it is difficult to be very specific without knowing some of the details of your spreadsheet.

  7. #7
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Graphs based on Conditional Formatting

    I have attached a sample of the spreadsheet so you can see what I have. They are the columns dates are being entered into. I think you and I are on the same page. I attached a sample sheet.

    Lynda
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    There's quite a bit there. Looking at the conditional formatting rules I can see several columns compared to several other columns. While others would probably do this without helper columns, I would be inclined to add helper columns to simplify the programming. For column C, for example, the conditional format rule is format red if column C is 1 day later than column B. In column Z, I enter the same formula as the conditional formatting rule =C2>B2+1 (copy/paste/fill down as far as needed). Similar helper column for the other columns of interest.

    Then, I choose a convenient place to build the summary table (I added a new sheet for this). In row 1, I enter the text identifiers/categories for each milestone ("routed date" "date offer accepted by applicant" etc.). In row 2, I enter COUNTIFS() formulas for each category. =COUNTIFS(Tracker!Z$2:Z$1048576,TRUE) to get the count of each. To get the ratio of lates to total, something like =A2/COUNTA(Tracker!A$2:A$1048576). Then use rows 1 and 2 or rows 1 and 3 on the helper sheet to build the chart.

    Will something like that work for you?

  9. #9
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Graphs based on Conditional Formatting

    Sounds like it would work, I just need to make sure those extra columns are not visible as I am not doing the data entry and do not want anything overwritten or erased. Could you send back a sample of what you did so i can look it over.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    duplicate!!!!!!
    Last edited by MrShorty; 10-14-2022 at 05:01 PM. Reason: duplicate

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Graphs based on Conditional Formatting

    Here's my file. Note that I only did a couple of categories to illustrate the process. Also, I moved the helper columns into the second sheet in response to your concern about other overwriting something adjacent to the main table (though you might consider becoming familiar with Excel's tools for locking cells so people cannot inadvertently overwrite important formulas).
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Graphs based on Conditional Formatting

    Worked perfect!!! Thank you so much for your help.

+ 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. Conditional formatting / tables / graphs
    By -jack in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2016, 09:07 AM
  2. Conditional Formatting in graphs for 2013 excel
    By mw2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-23-2015, 02:29 PM
  3. Graphs - Conditional Formatting Issue
    By James McEwan in forum Excel General
    Replies: 2
    Last Post: 05-19-2015, 04:49 AM
  4. Graphs & Conditional Formatting
    By The Boosh! in forum Excel General
    Replies: 1
    Last Post: 04-18-2011, 08:43 AM
  5. Conditional Formatting on Graphs
    By vamshi57 in forum Excel General
    Replies: 1
    Last Post: 07-15-2010, 06:23 PM
  6. Conditional Formatting with Graphs
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2009, 05:28 PM
  7. Conditional Formatting to Charts/Graphs?
    By woodman650 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-01-2007, 04:55 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