+ Reply to Thread
Results 1 to 4 of 4

IF/ELSE HELP Needed with Dates

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    IF/ELSE HELP Needed with Dates

    Hello,

    I need some help. I'm basically trying to say:

    If my date in cell BE11 is prior to 11/16/2011 then its "Past due". If the date is after 12/16/2011 then its "Current". And if the date is neither of those two then its "Within a month".

    Here's what I have:

    =IF(BG11<DATE(11,16,2011),"Past due",IF(BG11>DATE(12,16,2011),"Current","Within a month"))

    Right now I have a date of 9/12/2011 and it says "Current", when I toggle the sign to be >, its shows "Past due". But then when I go to change my date in BE11 to, for exmaple, 3/12/2012, it never changes to "Current". I'm missing something! Appreciate any help!

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: IF/ELSE HELP Needed with Dates

    I believe the DATE function has to be in the syntax (year, month, day)

    Try:
    =IF(BG11<DATE(2011,11,16),"Past due",IF(BG11>DATE(2011,12,16),"Current","Within a month"))

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF/ELSE HELP Needed with Dates

    DATE takes (year, month, day). Try this:

    =IF(BG11<DATE(2011,11,16),"Past due",IF(BG11>DATE(2011,12,16),"Current","Within a month"))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    04-15-2010
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: IF/ELSE HELP Needed with Dates

    Thank you both SO very much!! It worked!!

+ 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