+ Reply to Thread
Results 1 to 7 of 7

Time difference calculation adding 12 hours?

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    Penrith
    MS-Off Ver
    2007
    Posts
    27

    Time difference calculation adding 12 hours?

    Hi,

    I'm trying to do just a simple time elapse between two times =SUM(H3-G3) in time format, and the answer I'm getting is the correct minute length but adds 12 hours on too? I have tried doing =SUM((H3-G3)-12) but that hasn't worked, can anyone help?excel time difference.jpg

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,952

    Re: Time difference calculation adding 12 hours?

    Change the custom formatting of your result cell to hh:mm:ss without the AM/PM bit.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Time difference calculation adding 12 hours?

    edit - ignore

    if you change the format of all cells to general
    what are the numbers

    should be
    i3
    0.034722222

    g3 & h3
    0.335416667 0.370138889

    otherwise formatting issue
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,952

    Re: Time difference calculation adding 12 hours?

    Tested here before posting suggestion in post #2 - same result as OP.

  5. #5
    Registered User
    Join Date
    12-17-2015
    Location
    Penrith
    MS-Off Ver
    2007
    Posts
    27

    Re: Time difference calculation adding 12 hours?

    Ah that's sorted it thank you! I was sure it would be a simple thing it just wasn't coming to me at all!

    Thank you so much for your help

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,952

    Re: Time difference calculation adding 12 hours?

    You're welcome!

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Time difference calculation adding 12 hours?

    Let me make a comment on it
    I shall confess that for me it was some time ago puzzling that 12:52 AM is just 52 minutes after midnight (in my simple logic it shall be 00:52 AM, but somehow in UK it is not written like that).

    So indeed just 24h formatting as suggested by AliGW: "hh:mm:ss" will do the job.

    And note for the possible future applications (or for instance for adding up such times, etc) if it is possible that a value will be greater than 24 hours, use:
    "[hh]:mm:ss" format

    Digging a bit more:
    As for the formula, you probably can use just
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or if it is just to be directly compared with column F, where you written 3/4 hour (0.75) then formula shall read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and formatiing for this cell shall be general
    or may be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to avoid problems when column H is still empty after filling column G
    Last edited by Kaper; 08-01-2017 at 05:35 AM.
    Best Regards,

    Kaper

+ 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. Time difference calculation (+mm:ss.00)
    By luchian in forum Excel General
    Replies: 9
    Last Post: 04-04-2019, 11:54 PM
  2. [SOLVED] Adding hours to start time - Business hours/holidays/weekends
    By Thunderer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 01:09 PM
  3. [SOLVED] Time in Time format and text foramt - Finding the Hours difference
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 07:14 AM
  4. Difference between time in hours
    By cqwer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2013, 01:43 PM
  5. Time difference exceeding 24 hours
    By TSM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2012, 06:53 AM
  6. Adding a difference calculation to a Pivot Template
    By jcicero57 in forum Excel General
    Replies: 0
    Last Post: 06-21-2012, 09:22 AM
  7. Time Difference in hours between two date time stamps
    By Cipher in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2010, 10:24 AM
  8. [SOLVED] calculate difference in time to hours
    By Chris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-18-2005, 03:06 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