+ Reply to Thread
Results 1 to 5 of 5

Returning Next (future) Closest Timing from Now

  1. #1
    Registered User
    Join Date
    06-13-2020
    Location
    na
    MS-Off Ver
    na
    Posts
    2

    Returning Next (future) Closest Timing from Now

    Hi all,

    I am making a doc to extrapolate a list of possible timings for recurring events in a game.

    I have attached the file.

    The main user interface is sheet "Display". The highlighted cells are pre-programmed for users to input values to update the timer.

    The codings are hidden in sheet "Hardware".
    I have inputted some dummy values in Hardware.
    Given that the events happen on recurring known timings, the list of possible timings can be extrapolated and shown in array N:Y.

    For example, possible spawn times for Lycan1 is N26:Y26.

    My question is how to display in "Display" sheet, cell C12, the earliest possible future timings from N26:Y26? bearing in mind that timings next to 23:59 will jump into 00:00++

    I have included the current time in "Display", Cell G3. to use as reference for the comparison.
    I will eventually add a refresh button to update Now().




    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Returning Next (future) Closest Timing from Now

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-13-2020
    Location
    na
    MS-Off Ver
    na
    Posts
    2

    Re: Returning Next (future) Closest Timing from Now

    Hi BMV, Thanks so much! Its so crazy complex, wasnt expecting that. But it works and ill just replicate it using your file.

    May i check, whats the purpose of the logic check on "Hardware" N26 to P26? specifically N26 < Display! $G$8.
    I dont see this logic check referenced anywhere in the formulae.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,731

    Re: Returning Next (future) Closest Timing from Now

    Administrative Note:

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Similarly, please fill in the Office version that you are using.

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Returning Next (future) Closest Timing from Now

    There are some tricks
    1. the future value is next so we can find the value that less then now and add 1 position
    2. If the value that less then now then we mast get first value. For this case i use MOD function
    3. Because you generate values such as sum previous value and delta some values have extra day (+1)

    and the formula can be easy
    Please Login or Register  to view this content.
    i thought the set of values is only time and started solution for that but it is not so.
    Attached Files Attached Files
    Last edited by BMV; 06-14-2020 at 05:57 AM.

+ 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: 11
    Last Post: 06-05-2023, 01:36 AM
  2. [SOLVED] Highlight closest date to today (in the future - not past dates)
    By John19 in forum Excel General
    Replies: 5
    Last Post: 05-15-2023, 02:34 AM
  3. [SOLVED] Returning adjacent value based on closest match to another cell value
    By yankeesrus07 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-17-2016, 05:25 PM
  4. Returning date closest to input
    By jonnyyyl in forum Excel General
    Replies: 2
    Last Post: 06-09-2015, 03:28 AM
  5. Replies: 6
    Last Post: 08-16-2013, 11:20 PM
  6. vlookup returning the closest match down
    By kadams99 in forum Excel General
    Replies: 4
    Last Post: 12-08-2009, 08:00 PM
  7. Finding the closest future date from Today from a list of dates
    By maharg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2008, 09:45 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