+ Reply to Thread
Results 1 to 8 of 8

Conitional Formating of entire row based on expiration dates

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    Houston, TX
    MS-Off Ver
    Exel 2010
    Posts
    7

    Conitional Formating of entire row based on expiration dates

    I have a spreadsheet that has "authorizations dates" for clients in them. I want it to highlight the entire row of the clients information, in yellow when their auth period is 21 days out from expiring and then red when it is 7 days from expiring. Everything I have tried is failing miserably. I have been able to make the single cell change colors but then when I try and apply it to the entire row it is only reading the cell at the top and formatting the entire column based off that date. To apply it to all I would have to individually input the formula for each and that would extremely time consuming. Any help or advice is appreciated.

    *I am no expert on the use of excel but can do simple formulas. Office 2010.

  2. #2
    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,737

    Re: Conitional Formating of entire row based on expiration dates

    you should use a $ in the formula(s) to fix the cell and then apply to the range

    so
    if the date was in A2

    formula
    =AND($a2>=today()-21, $a2<today()-7) for yellow


    =AND($a2>=today()-7, $a2<=today()) for red


    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>
    select the range you want to apply to ( make sure in the formula below - you use the same row number as your selection
    so if you chose D4:H18, then the row in the formula should be 4


    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:

    =AND($a2>=today()-21, $a2<today()-7)

    Format… [Number, Font, Border, Fill] - fill for yellow
    choose the format you would like to apply when the condition is true
    OK >> OK
    Last edited by etaf; 02-17-2014 at 02:00 PM.
    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.

  3. #3
    Registered User
    Join Date
    02-17-2014
    Location
    Houston, TX
    MS-Off Ver
    Exel 2010
    Posts
    7

    Re: Conitional Formating of entire row based on expiration dates

    That was perfect! Thank you so much. I had been trying to figure this out for quite awhile.

    Sincerely,
    Jon

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

    Re: Conitional Formating of entire row based on expiration dates

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation her

  5. #5
    Registered User
    Join Date
    02-17-2014
    Location
    Houston, TX
    MS-Off Ver
    Exel 2010
    Posts
    7

    Re: Conitional Formating of entire row based on expiration dates

    Ok, I have no idea what has happened to this worksheet in the past week but I thought it was worked out. I am attaching a file that is stripped down for privacy reasons. You will see that the conditional formatting is entered and applied to the correct fields but it does not appear to be changing the fill colors as the dates change.

    Again, my intent is for the entire row to highlight yellow when the "auth end date" (d4) is 21 days out and then to turn red when it is 7 days out or expired. I think this may be some sort of locked cell issue? I can't seem to figure it out. Thoughts?
    Attached Files Attached Files

  6. #6
    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,737

    Re: Conitional Formating of entire row based on expiration dates

    all those dates are in the future

    so do you want future dates if so then we need to change the formula

    RED
    =AND($D4<>"",$D4<=TODAY()+7) - which will include dates in the past

    YELLOW
    =AND($D4<=TODAY()+21, $D4>TODAY()+7)

    sorry about that , i was testing the past and not the future

    hope the attached is what you are after
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-17-2014
    Location
    Houston, TX
    MS-Off Ver
    Exel 2010
    Posts
    7

    Re: Conitional Formating of entire row based on expiration dates

    That worked perfectly. Thanks again for your help! Take care.

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

    Re: Conitional Formating of entire row based on expiration dates

    Hi have a similar problem but think mine is a bit more complex. Seeing that you (etaf) are such a bright mind I would like to ask you to help me as well. The link to my tread is

    http://www.excelforum.com/excel-form...ml#post3611949

+ 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] Help with Conditional formatting based on expiration dates
    By william.pudifin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-05-2014, 07:50 PM
  2. 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
  3. Dates and Expiration formating
    By bstigleman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-30-2011, 12:39 PM
  4. Replies: 1
    Last Post: 05-27-2010, 12:32 PM
  5. Replies: 2
    Last Post: 02-26-2010, 07:19 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