+ Reply to Thread
Results 1 to 5 of 5

Return no results if a date value is older than a set date.

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Return no results if a date value is older than a set date.

    I am using the following formula to get the previous month based on cell I3.

    =EOMONTH(I3,-2)+1

    How can I get it to display nothing when the result is 05/2019 or older for the date?

    Thanks for any help with this.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Return no results if a date value is older than a set date.

    Try it this way:

    =IF(EOMONTH(I3,-2)+1 <= DATE(2019,5,31),"",EOMONTH(I3,-2)+1)

    I assume you mean anything in May or earlier (i.e. before 1st June 2019) should be blank.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Return no results if a date value is older than a set date.

    Thanks, yeah that is what I wanted and works, but I have an issue when I drag down, example attached.

    thanks, for your help.
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Return no results if a date value is older than a set date.

    Change it to this in A4:

    =IF(A3="","",IF(EOMONTH(A3,-2)+1 <= DATE(2019,5,31),"",EOMONTH(A3,-2)+1))

    then copy down.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Return no results if a date value is older than a set date.

    Perfect, thank you so much!

+ 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. IF/THEN: date is 5 years older than date in other cell
    By brittanyalysse in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2018, 03:30 PM
  2. Replies: 4
    Last Post: 03-21-2018, 09:25 AM
  3. [SOLVED] Change code so macro activates when entry date is older or equal to current date
    By Big.Moe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2017, 10:59 PM
  4. Conditional Formatting: If a date is older than another date
    By JRose0303 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-15-2016, 07:00 PM
  5. Replies: 2
    Last Post: 04-23-2014, 09:07 AM
  6. Replies: 2
    Last Post: 08-16-2013, 10:18 AM
  7. I want any date 90 days or older from current date change color
    By Big Abalone in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2006, 12:10 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