+ Reply to Thread
Results 1 to 7 of 7

How to calculate time remaining in an interval?

  1. #1
    Forum Contributor
    Join Date
    10-28-2014
    Location
    Sydney
    MS-Off Ver
    Professional 2010
    Posts
    151

    How to calculate time remaining in an interval?

    Im using

    A9 = A10 - (5/1440) copied up to create the 5 minute time difference between rows

    A10=FLOOR(NOW(),5/1440) to create the interval that only updates every 5 minutes

    but how does one calculate the time difference, maybe as a percentage, between A10=FLOOR(NOW(),5/1440) and =NOW()

    Thanks

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: How to calculate time remaining in an interval?

    For instance, now is 13:34
    % of change is:
    =(NOW()-FLOOR(NOW(),5/1440))/NOW()
    =(13:34-13:30)/13:30
    =0.000007732%
    Does it are you looking for?
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    10-28-2014
    Location
    Sydney
    MS-Off Ver
    Professional 2010
    Posts
    151

    Re: How to calculate time remaining in an interval?

    Hi, shouldnt 4 minutes into a 30 minute interval have remaining time = 86.67%?

    I can calculate the time difference between 2 times in minutes/seconds/milliseconds but thats as far as I got.

    =TEXT(B48-B47,"mm:ss:s")
    Last edited by prudential; 04-20-2018 at 05:00 AM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: How to calculate time remaining in an interval?

    So you want to calculate percentage of remain minutes to next interval of 5 minutes?
    NOW() is 15:21
    next interval of 5 minutes: =CEILING(NOW(),5/1440)= 15:25
    The remaining should be (4 mins/5 mins):
    =(15:25-15:21)*1440/5 = 80%
    =(CEILING(NOW(),5/1440)-NOW())*1440/5
    Is it you are looking for?

  5. #5
    Forum Contributor
    Join Date
    10-28-2014
    Location
    Sydney
    MS-Off Ver
    Professional 2010
    Posts
    151

    Re: How to calculate time remaining in an interval?

    Genuis!...Thats exactly what I need. Thank you

  6. #6
    Forum Contributor
    Join Date
    10-28-2014
    Location
    Sydney
    MS-Off Ver
    Professional 2010
    Posts
    151

    Re: How to calculate time remaining in an interval?

    Hi, for some reason it doesnt work with large time intervals like 1000 minutes. Do you know why?

  7. #7
    Forum Contributor
    Join Date
    10-28-2014
    Location
    Sydney
    MS-Off Ver
    Professional 2010
    Posts
    151

    Re: How to calculate time remaining in an interval?

    Thread has been solved. Thanks

+ 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] How to calculate time interval
    By VAer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2018, 02:19 PM
  2. [SOLVED] How to calculate Time Left (remaining time) using percentage
    By alexgoaga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2017, 10:55 AM
  3. [SOLVED] Calculate time remaining
    By WendyvdV in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-27-2015, 08:44 AM
  4. use of countif formula to calculate time intervals eg.15 min interval
    By sachin kokitkar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2013, 10:32 AM
  5. Replies: 30
    Last Post: 11-14-2012, 09:39 AM
  6. calculate time interval to nearest event
    By menos in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2011, 11:44 AM
  7. [SOLVED] Standardize dates and calculate time interval
    By bugmenot in forum Excel General
    Replies: 1
    Last Post: 01-21-2009, 10:03 PM

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