+ Reply to Thread
Results 1 to 4 of 4

Expiration Date Formulas or Conditional Formatting

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    Brandon, Fl
    MS-Off Ver
    Excel 2010
    Posts
    2

    Red face Expiration Date Formulas or Conditional Formatting

    Hi. I am working on a spreadsheet for work that consists of expiration dates for physician credentialing. I need a formula to use that will automatically change the text to red for all expired dates and yellow for those about to expire within 30 days. Every formula that I find consists of using (TODAY) OR (NOW), and because these use todays current date, this wont work as all of these expiration dates range for different reasons. For example, some formulas will end in -30 or +30, depending on the column. Can someone walk me through how to do this, please?

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Expiration Date Formulas or Conditional Formatting

    If you upload a sample (de-sensitized) showing what you have, and some expected results, we can maybe offer you a better, or at least personalized solution
    The reason all those formulas ues the TODAY() or NOW() functions are that is the way to find out how far away from now the other dates are :
    ....I need a formula to use that will automatically change the text to red for all expired dates and yellow for those about to expire within 30 days.
    For example:
    (using cf style formulas to return TRUE/FALSE)
    =TODAY()>'reference date'
    will return an expired date based on yesterday be the last day
    =TODAY()+20>='reference date'
    will return true for dates coming due within 20 days

    If your requirements for the expiry date calculation is different, we would need to see that to offer a more relevant solution

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    Brandon, Fl
    MS-Off Ver
    Excel 2010
    Posts
    2

    Talking Re: Expiration Date Formulas or Conditional Formatting

    Ah, that makes sense. For example, my first line shows that Dr. John Smith has an appointment letter that expires on 12/31/2014, then the next line shows the next doctor with this expiration date and so on. Each date is different because each physician received theirs at different times throughout the years. I need a formula that will use the date listed in the cell, and change it to red once that date has expired, or will expire within the next 30 days. Would I then use the conditional formatting with these formulas?

    =E7<Now()-30
    =E7<Now()+30

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Expiration Date Formulas or Conditional Formatting

    Hi alexandrao32

    Select column E & then Conditional Formatting on the home tab.
    Rule 1 - Expired:
    =AND(E1<>"",E1<=TODAY())

    Rule 2 - 30 days or less to expiry:
    =AND(E1<>"",E1>TODAY(),E1-TODAY()<=30)

    Rule 3 - 60 days or less to expiry:
    =AND(E1<>"",E1-TODAY()>=30,E1-TODAY()<=60)

    Or adjust the ranges if you only want to apply to a range of cells.
    Last edited by Kevin UK; 03-13-2013 at 11:06 AM.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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