+ Reply to Thread
Results 1 to 5 of 5

Formatting based on percentage complete and target date

  1. #1
    Registered User
    Join Date
    08-12-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Formatting based on percentage complete and target date

    Hello,

    I have searched all over and can't seem to find anything or figure this out myself. I have a sheet (example is attached) that lists multiple jobs and their related tasks. I want to know if it's possible to create a conditional formatting that says if the percentage complete under the "task" is under 100% and within X number of days of the target date, it's red/yellow/green.


    So, if a target date is 70-100 days out; 0%-10% - RED, 11%-45% - YELLOW, 46%-100% - GREEN
    If a target date is 40-69 days out; 0%-45% - RED, 46%-75% - YELLOW, 75%-100% - GREEN
    If a target date is 20-40 days out; 0%-60% - RED, 61-90% - YELLOW, 91%-100% - GREEN
    If a target date is 0-20 days out; 0%-85% - RED, 86%-95% - YELLOW, 96-100% - GREEN
    If a target date has passed, Anything under 100% is RED.

    Hopefully I've explained this well enough. Any help is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formatting based on percentage complete and target date

    Start with a cell to figure out the number of days. Example: Cell G1 =F1-Today()
    Then the conditional formatting will be easier using AND
    Apply the Conditional formatting to your range (B5:Ex) (x is the last row number)
    =And($G$1>70,B5<.11) Set format to Fill Red
    =And($G$1>70,B5>.1,B5<.46) Set format to Fill Yellow
    etc...

    In other words you will have 9 conditional formats applied to the same range
    They read like this: Format this cell if Fixed Cell G1 is greater than 70 AND Relative Cell is less that 11% the formatting will be fill the cell with red

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Formatting based on percentage complete and target date

    i think you will need to setup conditions for red , yellow and green

    Red for example
    =OR(AND( TODAY()>$F$1, B5<1),AND( TODAY()>$F$1-20, B5<0.86, B5>=0),AND( TODAY()>$F$1-40, B5<0.61,B5>=0),AND( TODAY()>$F$1-69, B5<0.46,B5>=0),AND( TODAY()>$F$1-100, B5<0.11,B5>=0))

    so that would be condition for RED and stop if true

    now yellow
    =OR(AND( TODAY()>$F$1-20, B5<0.96,B5>0.85),AND( TODAY()>$F$1-40, B5<0.91,B5>0.6),AND( TODAY()>$F$1-69, B5<0.76,B5>0.45),AND( TODAY()>$F$1-100, B5<0.46,B5>0.1))

    Now green
    =OR(AND( TODAY()>$F$1-20, B5<=1,B5>0.95),AND( TODAY()>$F$1-40, B5<=1,B5>0.9),AND( TODAY()>$F$1-69, B5<=1,B5>0.74),AND( TODAY()>$F$1-100, B5<=1,B5>0.45))
    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.

  4. #4
    Registered User
    Join Date
    08-12-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formatting based on percentage complete and target date

    Thanks Wayne! This appears to work for the most part - I still can't get the formatting to change colors based on the target date. If I go too far out, all formatting is lost. When I change the target date to tomorrow, none of the formatting changes. Any ideas what I'm doing wrong or what I need to add to do this?

    again, thanks so much!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Formatting based on percentage complete and target date

    did you try CRIMEDOG solutiuon, maybe easier

    Did I get the dates incorrect > instead of <

    can you attach an example spreadsheet and maybe with some dates and % and what colour you expect to get

+ 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 Red, Amber, Green, based on a target date
    By JimFiggs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2021, 04:47 PM
  2. Determine percentage of target based on two dates
    By Annabelle in forum Excel General
    Replies: 10
    Last Post: 02-07-2014, 05:25 PM
  3. [SOLVED] Conditional Formatting based on percentage
    By Tobievr in forum Excel General
    Replies: 2
    Last Post: 10-05-2013, 07:02 AM
  4. Replies: 2
    Last Post: 04-04-2013, 12:44 AM
  5. Replies: 0
    Last Post: 10-19-2011, 01:29 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