+ Reply to Thread
Results 1 to 14 of 14

impossible conditional formatting? complex RAG status

  1. #1
    Registered User
    Join Date
    05-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    Excel from MS Office 2013
    Posts
    14

    Question impossible conditional formatting? complex RAG status

    Any professor types out there that are up for an impossible challenge?

    I need to RAG overall section 1 (row 7) based on the completeness of the subsections 1.1 to 1.6.

    So,

    section 1 would turn red if 1.1 to 1.6 have anything in the "no" box

    section 1 would turn red/amber if two of 1.1 to 1.6 have anything in the "yes" box

    section 1 would turn amber if three or four of 1.1 to 1.6 have anything in the "yes" box

    section 1 would turn amber/green if five of 1.1 to 1.6 have anything in the "yes" box

    section 1 would turn green if all 1.1 to 1.6 have anything in the "yes" box

    The doozy - if the N/A is ticked, this row needs taken out of the equation or classed as a "yes" for the purposes of RAG


    impossible example.png

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,105

    Re: impossible conditional formatting? complex RAG status

    probably use a combinations of countif() or countifs()

    how do you plan to show RED/Amber or Amber/green colours ?

    you can countif the "yes" and the "#N/A" / NA()

    Please upload a small clean sample of your data / workbook (not a picture) to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    We would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "Choose File" (top Left corner).
    Find your file, click "Open" click "upload" click 'close windows" Top Right. click "Submit Reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: impossible conditional formatting? complex RAG status

    **EDIT** - Changes made please see next comment and file

    I'm expecting this to do the job?

    You need to use YES for Yes column and NO in the No column, and N/A in the N/A column.

    If this does what you need we can change to just count cells which are not blank instead.
    Attached Files Attached Files
    Last edited by PFDave; 05-04-2017 at 04:43 AM.
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: impossible conditional formatting? complex RAG status

    Updated for any value in each column (doesn't need to be yes,no or N/A for example)

    Also changed the hierarchy as I had the Red at the bottom in error.

    This does what you've asked now.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    Excel from MS Office 2013
    Posts
    14

    Re: impossible conditional formatting? complex RAG status

    Thanks! This is amazing!

    I will probably end up using this as I'm not sure if the following challenge makes it totally impossible??

    After having a play with it - is there a way to exclude the N/A's altogether? So if there is only 5 deliverables instead of 6, it works out the RAG on a percentage basis? Kind of like putting an N/A in tells the conditional formatting not to affect the RAG and the section cell only RAG's on the number of Yes / No's there?

    so something like

    100% Yes = Green
    75% - 99% Yes = Green / Amber
    50% - 74% Yes = Amber
    25% - 49% Yes = Amber / Red
    0% - 25% Yes = Red

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: impossible conditional formatting? complex RAG status

    Yes we can amend the formula in the conditional formatting to shade via a % calculation. (Funny as I was about to suggest this for more accurate calculations but you've beat me to it! Great minds and all that)

    I'll amend now and send over for you

  7. #7
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: impossible conditional formatting? complex RAG status

    After having a play with it - is there a way to exclude the N/A's altogether? So if there is only 5 deliverables instead of 6, it works out the RAG on a percentage basis? Kind of like putting an N/A in tells the conditional formatting not to affect the RAG and the section cell only RAG's on the number of Yes / No's there?

    so something like

    100% Yes = Green
    75% - 99% Yes = Green / Amber
    50% - 74% Yes = Amber
    25% - 49% Yes = Amber / Red
    0% - 25% Yes = Red
    This has removed the requirement for N/A.

    Please let me know how this works for you.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: impossible conditional formatting? complex RAG status

    Create 1st conditional formatting using this formula with Red color:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Create 2nd conditional formatting using this formula with Red/Amber color:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Create 3rd conditional formatting using this formula with Amber color:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Create 4th conditional formatting using this formula Amber/Green color:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Create 5th conditional formatting using this formula with Green color:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the attachment. I am not familiar with your color. So I have used different color.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    Excel from MS Office 2013
    Posts
    14

    Re: impossible conditional formatting? complex RAG status

    Perfect! That's nailed it! Thanks for your help PFDave

  10. #10
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: impossible conditional formatting? complex RAG status

    Quote Originally Posted by worboysn View Post
    Perfect! That's nailed it! Thanks for your help PFDave
    You're Welcome and thanks for the rep

  11. #11
    Registered User
    Join Date
    05-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    Excel from MS Office 2013
    Posts
    14

    Re: impossible conditional formatting? complex RAG status

    Hi PFDave - got another little dynamic to add in and cant seem to work it. Hoping you can help?

    In short, added an "on track" column - if this has a Yes in it, want it to count as a Yes for the Section RAG but turn the individual deliverable yellow (if that makes sense?)

    (Think I have reattached the xls?)
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: impossible conditional formatting? complex RAG status

    For "Section" rules


    =IF(SUM((COUNTIF($F$8:$F$13,"<>"&"")+COUNTIF($H$8:$H$13,"<>"&""))/SUM(COUNTIF($F$8:$F$13,"<>"&"")+COUNTIF($G$8:$G$13,"<>"&"")+COUNTIF($H$8:$H$13,"<>"&"")))>0.99,TRUE,FALSE)

    Change each one with appropriate value

    For "Deliverable"

    =$H8="Yes"

    Fill=Yellow

    Applies to: $H$8:$H$13

  13. #13
    Registered User
    Join Date
    05-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    Excel from MS Office 2013
    Posts
    14

    Re: impossible conditional formatting? complex RAG status

    I cant seem to make this work - any chance someone can pop it into the template?

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,889

    Re: impossible conditional formatting? complex RAG status

    See if this works in the manner you expect.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 11-22-2016, 02:43 PM
  2. Help with RAG status / conditional formatting
    By VickyWilson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2014, 08:05 AM
  3. RAG Status based on OLD / New Target (Conditional Formatting)
    By batchy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2014, 11:45 AM
  4. Conditional Formatting based on end date and status
    By bunchomunkies in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 02:10 PM
  5. [SOLVED] Impossible Conditional Formatting Problem?
    By noworriespete in forum Excel General
    Replies: 4
    Last Post: 01-08-2013, 04:47 PM
  6. Conditional formatting - job completion status by colour
    By newE in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-27-2011, 04:19 PM
  7. HELP? nested, complex, vlookup? The impossible!
    By ricdik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-19-2006, 01:10 AM

Tags for this Thread

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