+ Reply to Thread
Results 1 to 5 of 5

Need to flag a date red when the date has expired

  1. #1
    Registered User
    Join Date
    02-15-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Need to flag a date red when the date has expired

    Hi

    I'm having trouble with something that should be relatively simple.

    I have a spreadsheet of training, where all training is listed against staff members in a table.

    I have columns of dates (date the training was taken) and I need those cells to turn red when the training reaches it's expiry date which is in a years time.

    So far I have been directed to formulas like =TODAY()+/- and =NOW()+/- but since the conditioning has nothing to do with today's date I don't see how they will work.

    Can anyone help?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,177

    Re: Need to flag a date red when the date has expired

    youu would compare today() - the current date from the PC when the spreadsheet is opened
    with the date you want to test
    as date is just a number of days from 1900
    then if the date has expired its number will be less that today()

    assuming the date is in A2 to A100
    select that range
    goto
    conditional formatting
    add a formula
    new
    then in the formula put

    =A2<today()
    format and use whatever format you want = fill red or change font to red

    now when the date on the spreadsheet is less than today() it will flag
    and do all the A column down to row 100

    NOW() also includes the time and date soo no need to use that


    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>

    A1:A100


    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:


    =A2 < TODAY()


    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    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
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Need to flag a date red when the date has expired

    "=A2<today()
    format and use whatever format you want = fill red or change font to red"

    If that date is an expiry date shouldnt that be the other way round?
    If A2 is less than today then surely it hasn't yet expired?

    =A2 > TODAY()
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,177

    Re: Need to flag a date red when the date has expired

    its a number of days from 1 jan 1900 on windows or 1904 osx

    so if the date in the cell is 1/1/2017 -then in general format thats 42736
    today() (15/2/17) in general format thats 42781

    so the date has passed < today()

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Need to flag a date red when the date has expired

    Oh yep, makes sense now.

+ 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. Exact Date and Time compare within a range of exact date and times Lookup and Flag
    By john2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2015, 06:01 PM
  2. Email trigger on expired date
    By Vinny1959 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2015, 01:40 PM
  3. Sending email due to a expired date
    By RickyGregory in forum Excel General
    Replies: 1
    Last Post: 09-30-2014, 11:36 AM
  4. Create flag if date is < one date or >another
    By Grammaseamus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2012, 05:29 PM
  5. Delete Row if the Date has Expired
    By jsolder in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-23-2012, 11:16 AM
  6. msg box to display if date expired
    By baz0912 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2008, 12:26 PM
  7. Expired Date Formula
    By Donna in Elkin, NC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2005, 01:06 PM

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