+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Adding AND subtracting time in Excel 2007

  1. #1
    Registered User
    Join Date
    09-19-2009
    Location
    Poquoson, Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Adding AND subtracting time in Excel 2007

    My better half has asked for my assistance in constructing a table that would reflect the time differences between locations in different parts of the world (based on military time). I’ve been able to partially accomplish this by making use of Excel’s “Time” function as indicated in the example below. When I add time to the (EST) the function performs quite well. However, when the function encounters negative numbers, (time zones that run behind ours) it runs into problems. Any assistance would be greatly appreciated.
    Chuck

    US
    (EST)
    TIME Difference
    (in hours) Local
    Time Function
    22:00 6 4:00:00 AM =A2+TIME(B2,0,0)
    15:00 -1 #NUM! =A3+TIME(B3,0,0)
    Last edited by CLUPICO; 09-19-2009 at 09:28 AM. Reason: spacing

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703

    Re: Adding AND subtracting time in Excel 2007

    Rather than using TIME function (which doesn't accept negative values) try like this

    =A3+B3/24

    Although if you have A3 as 02:00 and B3 as -3 you'll still get problems because of going back to previous day....so change to this to fix that too....

    =MOD(A3+B3/24,1)

    In either case format the result cell in your required time format

  3. #3
    Registered User
    Join Date
    09-19-2009
    Location
    Poquoson, Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Re: Adding AND subtracting time in Excel 2007

    Outstanding! It worked like a charm. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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