+ Reply to Thread
Results 1 to 13 of 13

Calculate Time Left in Total Hours of Logged

  1. #1
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Calculate Time Left in Total Hours of Logged

    Dear Experts

    Please help me in suitable formula, I tried =H4+12*24 But still i'm getting different answers. Please guide. I have attached the workbook for your reference

    -sk
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    Try
    =H4-SUM(E4:E6)

    And format the cell with the formula as a TIME, not a number.

  3. #3
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Calculate Time Left in Total Hours of Logged

    Thanks for response.

    =H4-SUM(E4:E6) gives ######## as a result

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    That means it's a negative result (the sum of E4:E6 is greater than the time value in H4)
    And excel doesn't really understand Negative Time, there's no such thing.

    What do you want to happen in that situation?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    Wait, it could also just mean that your column width isn't wide enough to display the time format you chose.
    Widen the column...

  6. #6
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Calculate Time Left in Total Hours of Logged

    E4:E6 = 6 hrs and 30 mins
    Total Hrs Logged is 7 hrs and 19 mins
    Total Time Left should be balance 30 mins +19 mins = 49 mins (expected answer)


  7. #7
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Calculate Time Left in Total Hours of Logged

    ha ha ... I tried expanding column width tooo. its just ###

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    Where do you get 6 hrs 30 minutes for E4:E6 ?
    E4 is 4 hrs
    E5 is 2 hrs
    E6 is Blank
    SUM(E4:E6)= 6 hrs

    =H4-SUM(E4:E6) formatted as time (hh:mm:ss), shows 1:19:00
    EFskhari.xlsx

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Calculate Time Left in Total Hours of Logged

    =TEXT(H4-SUM(E4:E6),"hh:mm")
    try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  10. #10
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Calculate Time Left in Total Hours of Logged

    nope... still the same error.
    Error starts when I add minutes next to the hours

    E4 is 4.30 (four hours and thirty mins.)
    E5 is 1.00 (One hour)
    E6 is 1.15 (One hour and fifteen mins.)
    SUM(E4:E6)=6.45 (Six hours and forty five mins.)

    Total Hrs Logged is 7 hrs and 19 mins

    TIME LEFT is 34 mins (15 mins +19mins) ANSWER

    Please help!!!

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    Quote Originally Posted by skhari View Post
    E4 is 4.30 (four hours and thirty mins.) 4.3 is 4 days and 7 hours and 12 minutes.
    E5 is 1.00 (One hour) 1.00 is 1 Day 0 hours
    E6 is 1.15 (One hour and fifteen mins.) 1.15 is 1 Day, 3 hours and 36 minutes
    You have to enter time with a :
    4:30 = 4 hours 30 minutes
    1:00 = 1 hour
    1:15 = 1 hour 15 minutes
    Last edited by Jonmo1; 06-12-2015 at 10:35 AM.

  12. #12
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Calculate Time Left in Total Hours of Logged

    It works in this format. thank you

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate Time Left in Total Hours of Logged

    You're welcome.

+ 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] Formula Needed - Calculate total hours that fall between a specific time period.
    By JennyGP in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-19-2020, 02:44 AM
  2. Need to Calculate Total Hours from 2 date cells and 2 time cells in military time.
    By psunursingguy21 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-07-2015, 06:46 PM
  3. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  4. Calculate total hours if time ranges overlap
    By jl_stewart in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 10:21 PM
  5. Calculate total Hours between 2 date and time
    By Tylim in forum Excel General
    Replies: 3
    Last Post: 05-08-2006, 10:20 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