+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting

  1. #1
    Registered User
    Join Date
    04-17-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    5

    Question Conditional Formatting

    Hello Everyone,
    I am having a hard time with what I see as a simple task. I have a sheet compromised of dates that people completed training. What I would like to see is a cell containing a date be highlighted red if its overdue by a year, highlighted yellow if it is within 30 days of its 1 year expiration, and highlighted green if its current within a year. The expiration's would be based of =TODAY(). Using Conditional Formatting I can get it to highlight red and yellow using =EDATE(TODAY(),-12) for Red, and =EDATE(TODAY(), 30) for yellow. But I haven't found a formula to get green to work. Any help would greatly appreciated!

    -BroliniumFalcon

  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: Conditional Formatting

    Did you =today()
    ?
    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
    04-17-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Conditional Formatting

    I was merely referencing =today() to show that I want the conditional formatting based of the current day, not based off a hard day. I got to the point that I am at by just simply googling so if I am doing some wrong so far please let me know. I have tested what I have imputed now and red and yellow work as they should. I just cant get green to work without interrupting yellow or red.

  4. #4
    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: Conditional Formatting

    No, I meant did you try using =today() as the rule to test for green?

  5. #5
    Registered User
    Join Date
    04-17-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Conditional Formatting

    I am using:
    Cell value / Greater than or equal to =EDATE(TODAY(), -11) for GREEN
    Cell Value / Less than or equal to =EDATE(TODAY(),-12) for RED
    Cell Value / Less than =EDATE(TODAY(),-11) for yellow

    I am not sure how to use =today() for green.

  6. #6
    Registered User
    Join Date
    04-17-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Conditional Formatting

    Im trying to upload an example spreadsheet, lets see if this works. Great it did!

    This attachment is a very simplified version of what I am trying to create. In this example the yellow (30 days out from expiring) and the red (Over a year old, expired) will not coexist together.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-17-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Conditional Formatting

    Figured it out after some playing around and a slight headache. Below for the solution.

    Dates that current (to expiration date of 1 year) highlighted GREEN: Cell Value / between =TODAY()-30 and =TODAY()-335
    Dates that are are year old, or expired, highlighted RED: Cell Value / less than or equal to =EDATE(TODAY(),-12)
    Dates that coming up expired in 30 days highlighted YELLOW: Cell Value / less than or equal to =EDATE(TODAY(), 30)

    Im not sure if this the correct way to accomplish my mission, but it works for some reason!

+ 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 Formatting based on another cells Conditional Formatting
    By chriskay in forum Excel General
    Replies: 4
    Last Post: 08-22-2019, 05:33 AM
  2. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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