+ Reply to Thread
Results 1 to 5 of 5

Nearest date in the future

  1. #1
    Registered User
    Join Date
    02-04-2023
    Location
    Finland
    MS-Off Ver
    365 MSO Version 2208 Build 16.0 15601.20446
    Posts
    3

    Nearest date in the future

    Hi!

    I have dates in a column:

    23.1.2023
    25.1.2023
    8.2.2023
    22.2.2023
    15.3.2023
    3.2.2023

    This is the current date: 4.2.2023
    I have tried to create a formula to pick me the date 8.2.2023, which is the nearest date in the future.
    Just can't figure it out!
    Any help?

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Nearest date in the future

    Use this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    as a conditional formatting rule
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Nearest date in the future

    Firstly correct date format, your date not in date format it must be 23/01/2023 so on...
    suppose your data in a2 to a7
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    02-04-2023
    Location
    Finland
    MS-Off Ver
    365 MSO Version 2208 Build 16.0 15601.20446
    Posts
    3

    Re: Nearest date in the future

    Thank You! I'm in Finland so I had to translate this into:

    =MIN(JOS($A$1:$A$6-TÄMÄ.PÄIVÄ()>0;$A$1:$A$6))

    ..it works!

  5. #5
    Registered User
    Join Date
    02-04-2023
    Location
    Finland
    MS-Off Ver
    365 MSO Version 2208 Build 16.0 15601.20446
    Posts
    3

    Re: Nearest date in the future

    Thanks! I'm in Finland and we usually announce the date in this format: dd.mm.yyyy
    I got the code to work by translating it into:

    =JOS(TÄMÄ.PÄIVÄ()>MAKS($A$2:$A$7);"";MIN($A$2:$A$7;1+LASKE.JOS($A$2:$A$7;"<"&TÄMÄ.PÄIVÄ())))

    ...and this gives me the sequence number of the right date!

+ 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: 5
    Last Post: 06-29-2022, 12:15 AM
  2. Replies: 0
    Last Post: 11-16-2015, 08:57 AM
  3. [SOLVED] Find the Exact date, Nearest old and new date for the given input Letter) and date
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2015, 05:13 AM
  4. [SOLVED] Make row that automatically adds newest month + 2 nearest future months
    By cudh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2014, 08:40 AM
  5. [SOLVED] Calculate future date to nearest Monday
    By mswauger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 04:13 PM
  6. [SOLVED] Compare strings for match in separate worksheet and return nearest future date
    By kungfood in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 05:19 PM
  7. Replies: 7
    Last Post: 11-16-2008, 05:48 PM

Tags for this Thread

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