+ Reply to Thread
Results 1 to 3 of 3

converting time zones for negative times

  1. #1
    Registered User
    Join Date
    10-31-2007
    Posts
    1

    Unhappy converting time zones for negative times

    How do I get EXCEL to display a negative time using this formula (or another if it will work)? I am trying to create a time chart where my destination city is 14 hours behind my originating city. Depending upon the time of day, the destination city is sometimes still in the previous day but EXCEL won't show the time, it only shows #####################.
    Last edited by VBA Noob; 10-31-2007 at 05:14 AM.

  2. #2
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    Just add 1 to the result to get a positive timevalue, then the time will show correct. Now problem to do this on the positve times too. They will still show correct on the screen. Could be more trouble if you use the numbers for calculation.

    Adding 1 to a time/date value is the same as adding 1 day or 24 hours.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Adding 1 can be problematic, especially if you want to do further calculations with the result. Try using MOD, e.g.

    =MOD(C12-14/24,1)

    You can use this method to always return just a time (in excel terms a value between 0 and 1) even if C12 contains a date and time

+ 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