+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting NOT BASED ON TODAYS DATE.

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Conditional Formatting NOT BASED ON TODAYS DATE.

    Hi guys I have searched the internet far and wide but all forums just give me conditional formatting based on the "TODAY" function. I would like to have a cell turn "Green, Yellow and RED" based on a specific date that I have placed next to it. Any help please... I have attached a mock-up of what I am looking for. This is an outcry to all you intellectuals out there
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-07-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    21

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    So the time in terms of days or fractional days (the way Excel measures time) will control the fill color? You can subtract one date from another (they are values) and based on that result, build a few conditional formatting rules to generate the desired fill color. You could also use color scales that will provide you the opportunity to determine the break points and the number ranges that generate one color or another.

    HansensOffice.com

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    OK I have used the "average function" so that gives me a value in "cell F2" smack in the middle. By using the Format all cells based on their value and selecting 3-color scale as my format style am I on the right path to figure this one out???

  4. #4
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    Quote Originally Posted by sovero View Post
    Hi guys I have searched the internet far and wide but all forums just give me conditional formatting based on the "TODAY" function. I would like to have a cell turn "Green, Yellow and RED" based on a specific date that I have placed next to it. Any help please... I have attached a mock-up of what I am looking for. This is an outcry to all you intellectuals out there
    When applying your conditional formatting use - "Use a formula to determine which cells to format"

    For example

    Please Login or Register  to view this content.
    This does a check whether the number of days between E2 and D2 is greater than 5, if true, then it colors the cell red

    You'd just need to create two more entries for conditions that you want cells to be colored green and orange

  5. #5
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    I see what you mean ThirtyTwo. Generally the equipment gets services every two weeks. But there has to be something keeping count of days passing. So if it is only due in two weeks time then it is still green. If it is due in a weeks time yellow and 5 days before services due red. Hope that makes sense...??>>>>

  6. #6
    Registered User
    Join Date
    03-06-2014
    Location
    Pongola, RSA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    OK I have figured out some of it... What I used is the "DATEIF" or let me say the new xlDATEDIF. So the formula looks like this =xlDATEDIF(TODAY(),E2,"D").

    The problem is this...

    Excel show 6 days in cell "F2" but the actual value behind the scenes are 38718.00... Which make conditional formatting useless

    Any suggestions..???

    I will upload the doc so you guys can see what I am talking about...

  7. #7
    Registered User
    Join Date
    03-07-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    21

    Re: Conditional Formatting NOT BASED ON TODAYS DATE.

    Hi -

    Subtract the date in column D from the date in column E and you will get the days elapsed between the two dates. There is also a way to get the working days between two dates while defining holidays if your interested.

    After getting your result you can add some conditional formatting rules or color scales.



    HansensOffice.com

+ 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 Formula - highlighting month column based on todays date
    By frogboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2012, 10:49 AM
  2. [SOLVED] Conditional Formatting. Anything 4.5 years old + older from todays date needs Highlight.
    By themanwithnoshoes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2012, 11:58 AM
  3. [SOLVED] Tricky one-Conditional Formatting from todays date
    By leanne2011 in forum Excel General
    Replies: 3
    Last Post: 09-15-2012, 01:28 PM
  4. Replies: 6
    Last Post: 01-17-2011, 10:34 AM
  5. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM

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