+ Reply to Thread
Results 1 to 4 of 4

Expiration Date to trigger row to change color

Hybrid View

  1. #1
    Registered User
    Join Date
    10-26-2018
    Location
    Camarillo, ca
    MS-Off Ver
    2010
    Posts
    2

    Expiration Date to trigger row to change color

    Hello all,
    I have search for the proper formula but haven't found a complete fix. What I am doing is creating a spread sheet for certifications with expiration dates. I need the expiration dates to trigger the whole row to turn yellow, amber and red for 30 days, 60 days, and 90 days before the expiration date. IDK if that communicates properly. I found this =AND(E6<=TODAY()+30,E6<>"") in the search engine but this formula only changes the first cell the I highlighted. I need it to trigger the whole row to turn a color. Thank you very much.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,846

    Re: Expiration Date to trigger row to change color

    First, if the date is in column E then your formula should be

    =AND($E6<=TODAY()+30,$E6<>"")

    Second, make sure the Applies To range includes the entire row.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Expiration Date to trigger row to change color

    Hello and welcome to the forum.

    If you want Conditional Formatting to produce three different colors, you have to create three CF rules in this order (one for each color).

    Yellow:
    Highlight the entire area that you want to apply the conditional formatting to (e.g. E6:Z100) > Conditional Formatting > New Rule > Use a formula
    =AND($E6<>"",$E6-TODAY()<=90)
    Format: Fill Yellow > OK > OK

    Amber:
    Highlight the entire area that you want to apply the conditional formatting to (e.g. E6:Z100) > Conditional Formatting > New Rule > Use a formula
    =AND($E6<>"",$E6-TODAY()<=60)
    Format: Fill Amber > OK > OK

    Red:
    Highlight the entire area that you want to apply the conditional formatting to (e.g. E6:Z100) > Conditional Formatting > New Rule > Use a formula
    =AND($E6<>"",$E6-TODAY()<=30)
    Format: Fill Red > OK > OK

  4. #4
    Registered User
    Join Date
    10-26-2018
    Location
    Camarillo, ca
    MS-Off Ver
    2010
    Posts
    2
    63falcondude,

    This work perfect! Exactly what I was looking for thank you so much.
    Last edited by jeffreybrown; 10-26-2018 at 03:36 PM. Reason: Removed full quote!

+ 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. Double click event in protected sheet to trigger color change and value insertion
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2017, 07:11 PM
  2. Replies: 5
    Last Post: 01-05-2015, 03:57 PM
  3. Replies: 1
    Last Post: 08-15-2013, 11:04 PM
  4. 3 Color Conditional Formatting Based on Various Expiration Dates
    By sandmankuwait in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2013, 11:11 AM
  5. Replies: 0
    Last Post: 05-18-2012, 04:42 AM
  6. [SOLVED] color code a row by expiration date?
    By Kate in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-15-2006, 03:20 AM
  7. [SOLVED] change background row color with change of date in a cell
    By Urszula in forum Excel General
    Replies: 5
    Last Post: 05-17-2006, 03:00 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