+ Reply to Thread
Results 1 to 5 of 5

how to format (conditional formatting) a cell that reaches a certain % before a given date

  1. #1
    Registered User
    Join Date
    11-07-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    2

    Question how to format (conditional formatting) a cell that reaches a certain % before a given date

    I have a set of data that contains % completion of a project and target dates. The goal is to format a cell (let's call it "status" cell) as follows:
    red - 90% Loaded (column G) 12 days prior to "Input date" (column B)
    orange - 90% Loaded (column G) 18 days prior to "Input date" (column B)
    green - 90% Loaded (column G) 21 days or more prior to "Input date" (column B)

    Is there a way to determine that given the attached data and format column H?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to format (conditional formatting) a cell that reaches a certain % before a given

    If you are matching Input Date to today's date, then none match. If you are testing against a different date, what would that date be?

    The basis of what you want is as follows...

    rule 1
    =AND(G4>0.9,TODAY()-B4>12)
    Rule 2
    =AND(G4>0.9,TODAY()-B4>18)
    Rule 3
    =AND(G4>0.9,TODAY()-B4>21)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-07-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    2

    Question Re: how to format (conditional formatting) a cell that reaches a certain % before a given

    I'm trying this formula instead so conditional formatting can be easier and based only on the values in the cells. However, there's an error in my formula below. Can someone help me get the values in my analysis below?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Parameters
    I7 = %closed
    F7 = Input Date

    ANALYSIS:
    AND(I7>0.9,(F7-19)>TODAY())),"GREEN",
    if % closed is more than 90% at least 19 days prior to input date = status green

    AND(I7>0.9,(F7-18)>TODAY())),"AMBER",
    if % closed is more than 90% less than 19 days prior to input date = status amber

    AND(I7<0.9,(F7-15)>TODAY())),"RED"
    if % closed is less than 90% less than 15 days prior to input date = status red

  4. #4
    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
    28,178

    Re: how to format (conditional formatting) a cell that reaches a certain % before a given

    Try

    =IF(OR(AND(I7>0.9,(F7-21)>TODAY())),"GREEN",IF(OR(AND(I7>0.9,(F7-18)>TODAY())),"AMBER",IF(OR(AND(I7<0.9,(F7-12)>TODAY())),"RED","CHECK")))
    Last edited by JohnTopley; 11-09-2016 at 01:29 AM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to format (conditional formatting) a cell that reaches a certain % before a given

    Thanks for the feedback

    To use Conditional Formatting, all you need is a formula that returns TRUE or FALSE, and you dont include the color in the formula, you use it as the format that gets applied if the rule is TRUE. So Im a little confused as to whether you want to use CF - which will change the format/color of the cell - or just a regular formula IN the cell, that will return an answer in the cell you are working with?

+ 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. [SOLVED] conditional format formula to color red once demand reaches/exceeds onhand quantity
    By marcella needs help in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2016, 06:18 PM
  2. Replies: 2
    Last Post: 12-05-2014, 07:15 AM
  3. Replies: 7
    Last Post: 05-03-2014, 12:17 PM
  4. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  5. Replies: 5
    Last Post: 06-30-2013, 06:54 PM
  6. [SOLVED] Conditional formatting of a cell in a column if character count reaches a limit
    By Pavan Renjal in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 01-13-2013, 03:16 PM
  7. Conditional Date Formatting with a Custom Cell Format
    By kqueen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2012, 01:48 PM

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