+ Reply to Thread
Results 1 to 3 of 3

Get Next Event Time Based on a Fixed DateTime, the Current Time and a Time Multiplier

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    133

    Get Next Event Time Based on a Fixed DateTime, the Current Time and a Time Multiplier

    We're trying to get the "Next Reset" column formulas.


    First of all, here's the sample:

    exceltimequestion.PNG

    Current Time: 13:06

    Type,Reset Period (in H),Known Reset DateTime,Next Reset
    A,8,10/21/2021 11:33,19:33
    B,24,10/22/2021 16:15,16:15
    C,5,10/23/2021 2:23,


    ----


    Explanation:
    Each type has a "Reset Period" and a "Known Reset DateTime".
    Based on those and the current datetime, we need to know the hour of the next reset.


    For example:
    Type A, has a "Reset Period" of 8 hours, and the "Known Reset DateTime" is 10/21/2021 11:33
    Since the current time is 13:06, the next reset should be 19:33.

    Hope is clear enough.

    How do we do it?
    Last edited by nicoan; 11-22-2021 at 10:18 AM.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Get Next Event Time Based on a Fixed DateTime, the Current Time and a Time Multiplier

    I'm assuming you want to know the next time after the current date/time? In D5 I used:

    Please Login or Register  to view this content.
    (primarily because Excel doesn't like TIME(24,0,0)). I then copied this down - is this any use?

    WBD
    Attached Files Attached Files
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Contributor
    Join Date
    07-22-2013
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    133

    Re: Get Next Event Time Based on a Fixed DateTime, the Current Time and a Time Multiplier

    Wow, it works like a charm..

    A million thanks man.

+ 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. [SOLVED] Automatically advancing a schedule time based on the current time
    By arsenalmom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2020, 12:05 PM
  2. [SOLVED] Calculating a previous work shift time (05:30, or 17:30) based on current time
    By andrew.why in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2017, 09:09 PM
  3. [SOLVED] Dividing af formula for elapsed time with a fixed(static) time
    By cbend001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2014, 09:37 PM
  4. compare time values - current time with time in cell range?
    By wyattea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2013, 11:28 PM
  5. time variant data into fixed houlry time step (sum)
    By sensation in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-16-2012, 06:09 AM
  6. Loan Calculator with Terms based on Fixed Payment not a fixed time frame.
    By cc4digital in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2012, 04:49 AM
  7. Calculate current date from fixed time?
    By mandg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2006, 03:50 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