+ Reply to Thread
Results 1 to 5 of 5

Dates Formulas

  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    44

    Dates Formulas

    Here's what I can't seem to figure out...I have this formula ---> =IF(E4-TODAY()<=21,"GOOD","BAD")
    It only works if the years change, but not the days.

    What I need it to do....
    If date in "E4" is equal to OR greater than 21 days from"Today()", display "BAD", else display "GOOD"

    e.g. E4 = 1/1/2016. Today is 2/12/2016. Should display BAD. If E4= 2/10/2016. Today is 2/12/2016. Display Good.

    I'm getting lost in the wind here....

    Thank you ahead of time.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dates Formulas

    Maybe you just need to reverse the logic...

    =IF(TODAY()-E4<=21,"GOOD","BAD")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Dates Formulas

    Try

    =IF(E4<=TODAY()-21,"BAD","GOOD")

  4. #4
    Registered User
    Join Date
    08-21-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    44

    Re: Dates Formulas

    WOW! Do I feel dumb on that one! it works like a charm....

    Thanks!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dates Formulas

    You're welcome. Thanks for the feedback!

+ 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. Replies: 4
    Last Post: 10-17-2013, 09:59 AM
  2. Replies: 18
    Last Post: 03-24-2013, 04:20 PM
  3. [SOLVED] Formulas that contain dates and hidden formulas
    By rowena229 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-22-2013, 12:51 PM
  4. [SOLVED] Formulas for dates
    By jenkins116 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2012, 09:29 PM
  5. Dates in formulas
    By drainer in forum Excel General
    Replies: 7
    Last Post: 08-22-2010, 09:08 AM
  6. Dates in Formulas
    By Cortlyn in forum Excel General
    Replies: 6
    Last Post: 11-19-2009, 07:45 AM
  7. worksheet shows dates as number and formulas as formulas
    By baneVader in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2008, 01:36 PM
  8. help with formulas and dates???
    By n0 h4ck1ng in forum Excel General
    Replies: 9
    Last Post: 08-15-2005, 03:02 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