+ Reply to Thread
Results 1 to 9 of 9

Calculate time remaining

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    29

    Calculate time remaining

    I would like to use a formula to count the time remaining. Is this possible?
    Eg:

    Say it is 9:15 AM right now and I work untill 17:00 pm, I would like a formula that gives me the work time remaining for today?

    And if I have that calculated, I would like to use the field of the remaining work time like this:

    Remaining working time: (17:00 - 9:15) = cell c1
    A B
    Task 1: 0:30
    Task 2: 1:00
    Task 3: 0:45

    Time left for other tasks = cell c1 - sum(b2:b4)

    Is this possible?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,857

    Re: Calculate time remaining

    If your end time is in D1 then the formula in C1 for time remaining is

    =D1-NOW()


    Time left after Tasks 1-3 are allocated is in the formula you have already shown:

    =C1-SUM(B2:B4)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-17-2014
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    29

    Re: Calculate time remaining

    Hi I tried your solution but the formula D1-now() gives a result of #######
    So that does not seem to work? I have in D1 the time 17:00 (uu:mm) and also in the cell where the formula is displayed this is the format of the cell. Am I doing something wrong?

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Calculate time remaining

    Format the now to be in the same format... =D1-Value(Text(Now(),"HH:MM"))

    Keep in mind once this goes negative (Time has passed) then it will ######## out... So maybe wrap an if in there...

    Please Login or Register  to view this content.
    Last edited by ELeGault; 02-27-2015 at 03:57 AM.
    -If you think you are done, Start over - ELeGault

  5. #5
    Registered User
    Join Date
    12-17-2014
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    29

    Re: Calculate time remaining

    =D1-Value(Text(Now(),"HH:MM"))

    In D1 I have value 17:00
    Is that all I need to fill in? Because if I do, I now get the result #VALUE

  6. #6
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Calculate time remaining

    TR.xlsx

    Take a look... seems to be working fine with the full formula
    Please Login or Register  to view this content.
    Added seconds for fun

  7. #7
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Calculate time remaining

    Quote Originally Posted by WendyvdV View Post
    =D1-Value(Text(Now(),"HH:MM"))

    In D1 I have value 17:00
    Is that all I need to fill in? Because if I do, I now get the result #VALUE
    Plz try to use the solution

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by tigertiger; 02-27-2015 at 04:12 AM.
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

  8. #8
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Calculate time remaining

    That will do the trick as well, but again, wrap it up in an IF statement

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-17-2014
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    29

    Re: Calculate time remaining

    Quote Originally Posted by ELeGault View Post
    Attachment 379859

    Take a look... seems to be working fine with the full formula
    Please Login or Register  to view this content.
    Added seconds for fun
    If I open the file I see the result as time, as soon as I put editing on, it says #VALUE?

    =IF(D1<(Now()-Today()),0,D1-(Now()-Today()))
    That works! 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] Calculate time remaining based on end date & time and current date
    By Kaz09 in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 08-19-2014, 07:11 AM
  2. Calculate how many days remaining between two Dates
    By jordanbuchan359 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-25-2014, 10:42 PM
  3. [SOLVED] How to calculate the remaining rates for a loan
    By ShadowHash in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-11-2014, 04:49 PM
  4. Replies: 30
    Last Post: 11-14-2012, 09:39 AM
  5. Calculate remaining # of days between 2 dates
    By Potato2009 in forum Excel General
    Replies: 4
    Last Post: 08-13-2009, 03:21 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