+ Reply to Thread
Results 1 to 6 of 6

Calculating hours & minutes from time start and end.

  1. #1
    Registered User
    Join Date
    07-31-2017
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    3

    Calculating hours & minutes from time start and end.

    Time.jpg
    The B and C columns are formatted as custom hh:mm.
    The calculation for the D2 is '1-B2+C2'. This gives me the hours and minutes.
    But when I add up the D column, it reads 01:10 in stead of 25:10.
    Which formulas do I use to correct this issue?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Calculating hours & minutes from time start and end.

    Change the custom format type to [h]:mm:ss
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-31-2017
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculating hours & minutes from time start and end.

    Thanks Special-K, but this also is not working.
    I have attached 3 samples of different formats and the hours don't add up to 25:10 (25 hours, 10 min)
    If the total is under 24 hours, it shows the correct hour total, but when the hours exceed 24 hours, it starts from 00:00. (D7 only)
    Time2.jpg

  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,989

    Re: Calculating hours & minutes from time start and end.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Calculating hours & minutes from time start and end.

    Quote Originally Posted by Dietmar Weise View Post
    Thanks Special-K, but this also is not working.
    I have attached 3 samples of different formats and the hours don't add up to 25:10 (25 hours, 10 min)
    If the total is under 24 hours, it shows the correct hour total, but when the hours exceed 24 hours, it starts from 00:00. (D7 only)
    Cell I7 is clearly more than 24hrs and therefore works.

    Copy the format of cell I7 to cells D7 and N7 using the Paintbrush icon.

  6. #6
    Registered User
    Join Date
    07-31-2017
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculating hours & minutes from time start and end.

    My original spreadsheet is based on the sample
    The total of hours should add to 24:15 hours, not 00:15.

    In the original spreadsheet, I only insert data in the 'Times Input' sheet, the totals should work out according to the formula I battle with.
    Attached Files Attached Files

+ 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] Calculating Target Date/Time Based on Start date and hours - Excel 2007
    By chinraj in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-09-2019, 01:43 AM
  2. Replies: 3
    Last Post: 09-21-2015, 01:56 PM
  3. Replies: 5
    Last Post: 03-18-2015, 11:31 PM
  4. Replies: 21
    Last Post: 11-30-2012, 07:28 PM
  5. Calculating END time based on start time, breaks, and hours to complete
    By sweedey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 11:29 AM
  6. Replies: 2
    Last Post: 01-24-2012, 09:20 PM
  7. Calculating hours with midnight as a start time
    By MarcLiq in forum Excel General
    Replies: 4
    Last Post: 10-01-2009, 07:48 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