+ Reply to Thread
Results 1 to 8 of 8

SOLVED Get next date after Today()

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2003
    Posts
    15

    SOLVED Get next date after Today()

    Hello - I am trying to write a formula to return the next date after today, but am having some trouble with it. Here is my scenario:

    In cell K25 I have a value where if it is greater than 49 I want the forumla to look at the values of Cells L3:L22 (these cells have a range of dates in them). I want the formula to go through these cells and pick the next date after today....If the value in Cell K25 is Less than or equal to 49 I want it to just return Todays date.

    I found this post http://www.excelforum.com/excel-gene...ter-today.html which was basically what I was looking for, but for some reason when I put that into my formula it will return the smallest date, even if it is older than today.

    So going back to my formula....Here is what I have currently in my cell:
    =IF(K25>49,MIN(IF(L3:L22>TODAY(),L3:L22)),TODAY())

    Like I mentioned above - this results with dates that are older than today - what can I do to make it return results that are only after todays date?

    Thanks for any help you can provide!
    Last edited by garveyj; 06-18-2009 at 09:11 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Get next date after Today()

    Your formula is an array formula- you will need to enter it into Excel by holding down CTRL+Shift and then click Enter.

    That should then work.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  3. #3
    Registered User
    Join Date
    06-18-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Get next date after Today()

    Sorry, but I do not really understand that - do I click into the cell and then do CTNL+Shift and then enter and then paste the code into the cell?

  4. #4
    Registered User
    Join Date
    06-18-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Get next date after Today()

    Nevermind - I got it to work

    Thanks for your help!

  5. #5
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Get next date after Today()

    You're welcome- please ensure that you set your thread title to SOLVED

    To mark your thread solved do the following: - Go to the first post - Click edit - Click Advance - Just below the word "Title:" you will see a dropdown with the word No prefix. - Change to Solve - Click Save

  6. #6
    Registered User
    Join Date
    06-18-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Get next date after Today()

    One more question related to this - can you post text in a cell followed by the result of a formula?

    i.e. the next available date is (then the result of the forumla here)?

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SOLVED Get next date after Today()

    You can use a formula like this:

    ="The next available date is "&TEXT(IF(K25>49,MIN(IF(L3:L22>TODAY(),L3:L22)),TODAY()),"m/d/yyyy")

    confirmed with CTRL+SHIFT+ENTER

    Note: if your dates in L3:L22 are in ascending order (i.e. early to late) then you can use a non-array version with LOOKUP, i.e.

    ="The next available date is "&TEXT(IF(K25>49,LOOKUP(TODAY()+1,L3:L22),TODAY()),"m/d/yyyy")

  8. #8
    Registered User
    Join Date
    06-18-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: SOLVED Get next date after Today()

    Thanks - it is all working now....I was only missing the CTRL+Shift+Enter command....Doh!!

    Oh well- live and learn.

    Thanks again!

+ 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