+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Using Dates in an IF Statement

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2019 H: 365
    Posts
    867

    Using Dates in an IF Statement

    Morning all,

    Hopefully a quick n easy one. I want an IF statement to bring back the date 01/04/2011 if the date it is looking up is before 01/04/2011 otherwise bring back the date in the cell. For example if the date in the cell is 01/03/2011 bring back 01/04/2011. If the date in the cell is 30/04/2011 bring back 30/04/2011.

    I've had a bash but i'm struggling.

    Cheers,

    Snook

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,406

    Re: Using Dates in an IF Statement

    You mean like this: =MAX("01/04/2011", A1)

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2019 H: 365
    Posts
    867

    Re: Using Dates in an IF Statement

    I certainly do and now i've used 'MIN' to calculate the flip side for the end dates. Two functions that i've never used (or heard of) before.

    Thanks!

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: Using Dates in an IF Statement

    Hi,

    Have you tried using General values of date in "if" statement?
    Example:

    1/4/2011 = 40547
    Please click on the * if resolution works for you

+ 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