+ Reply to Thread
Results 1 to 7 of 7

Calculating Time differences

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2010
    Posts
    4

    Calculating Time differences

    Can anyone help?

    I have two columns, one containing previous time (eg 3.10.04, ie 3 minutes, 10 seconds and 04 milliseconds) and 2nd column containing new time (eg 3.12.89).
    I need a formula to give me the difference between the 2 times (result may be positive or negative time). I formulated the columns to be "time" but result in #VALUE! error.

  2. #2
    Registered User
    Join Date
    09-30-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating Time differences

    Don't worry, I've figured it out. Had my columns formulated to "time" but needed to custom it to mm:ss.0.
    Thanks anyway

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Calculating Time differences

    I used custom formatting mm.ss.00 and then subtracted them using a simple excel =B1-A1 and arrived at 00.02.85
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating Time differences

    Thanks alansidman, I figured the formatting part out. Now I have another problem. If the result ends in a negative amount (which I need to determine), I get ################ or #VALUE!
    How do I rectify this?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Calculating Time differences

    =if(A1-B1>0,A1-B1,(B1-A1)*-1) This is untested and off the top of my head.

    That won't work either.

    Look at what MS has to say on the subject of negative times.

    http://support.microsoft.com/kb/182247
    Last edited by alansidman; 09-30-2013 at 07:39 PM.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Calculating Time differences

    welcome to the forum, LGT06. so what do you need shown when it's a negative? if it's always the later time minus the earlier, then:
    =MAX(A1:B1)-MIN(A1:B1)

    if the earlier time is supposed to be a day later:
    =MOD(A1-B1,1)
    you need to format to see the hours

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Calculating Time differences

    Thankyou everyone for your help. I was calculating swimming times and had to show whether the swimmer's latest time was faster or slower than previous time swum.

    All it took was changing to the 1904 Date System.

    Thanks again.

+ 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. Calculating time differences over different dates
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2010, 01:26 PM
  2. Calculating & Displaying time differences
    By matt002 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 03-12-2009, 05:35 AM
  3. Calculating time differences
    By cjccpa in forum Excel General
    Replies: 5
    Last Post: 04-01-2008, 09:02 AM
  4. Calculating time differences
    By WaySlowWhitey in forum Excel General
    Replies: 3
    Last Post: 10-22-2007, 10:26 AM
  5. calculating time/dates differences
    By fvglassman in forum Excel General
    Replies: 3
    Last Post: 06-22-2005, 07:05 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