+ Reply to Thread
Results 1 to 5 of 5

Help: Time Zone Offset Calculation

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    33

    Help: Time Zone Offset Calculation

    I've got a CSV file that has been sent to me where each entry has a vehicle reports in with certain metrics. Included in these metrics are the time the metric is reported. The problem I am having is that the time is delivered in UTC date/time (in Column A). Column B has an "offset" to show how many hours difference there are between the UTC time and the local time for that particular vehicle. I am trying to figure out a calculation, but am having trouble. Here's the problems I am having:

    Problem 1 - My initial thought was to use "Text to Columns" with space as the delimiter, thinking I could just run a simple subtraction formula once completed. The problem here is that if an entry is recorded after 7pm local time, the UTC time moves into the next day, and the simple subtraction formula will not take that into account.

    Problem 2 - Even if there was a workaround, it seems that the numbers in the "Offset" column don't work well with time calculations because they are not a time (it's -5, -6, -7, or -8).

    I've uploaded the CSV here, and would appreciate any help...thanks in advance!

    excelforums.csv

  2. #2
    Registered User
    Join Date
    03-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Help: Time Zone Offset Calculation

    I think I may have just answered my own question.

    Step 1 - Run a Text To Column conversion on the offset column to strip out the - sign.
    Step 2 - Change properties of values in Column C to "Number"
    Step 3 - In Column D, run the following formula: A2-TIME(C2,0,0)

    Autofill to end - we're done. Is this correct?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help: Time Zone Offset Calculation

    Or in D2 and copy down,

    =B2+C2/24


    A
    B
    C
    D
    E
    1
    AlertName VehicleDateUTC VehicleTimeZoneOffset
    2
    251 Stevenson
    03/01/2014 00:33
    -5
    02/28/2014 19:33
    D2: =B2+C2/24
    3
    034 Palm Beach
    03/01/2014 01:17
    -5
    02/28/2014 20:17
    4
    366/368 Limcan Walker/Certifie
    03/01/2014 01:18
    -5
    02/28/2014 20:18
    5
    After Hours
    03/01/2014 03:00
    -5
    02/28/2014 22:00
    6
    After Hours
    03/01/2014 03:00
    -5
    02/28/2014 22:00
    7
    After Hours
    03/01/2014 03:00
    -5
    02/28/2014 22:00
    8
    After Hours
    03/01/2014 03:00
    -5
    02/28/2014 22:00
    9
    After Hours
    03/01/2014 03:00
    -5
    02/28/2014 22:00
    Last edited by shg; 04-02-2014 at 11:21 AM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Help: Time Zone Offset Calculation

    Oh, DOH, that makes even more sense. I guess it doesn't matter as long as the results are the same, correct?

    Is there a preferred convention for doing something like that?

    I am still assuming that steps 1 and 2 are needed before the COLX - TIME(COLY,0,0) or the COLX-COLY/24 could be done, right?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help: Time Zone Offset Calculation

    I am still assuming that steps 1 and 2 are needed
    Nope. I just opened the CSV and added the formula.

+ 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 in different zone
    By Yetski67 in forum Excel General
    Replies: 5
    Last Post: 05-15-2014, 05:31 AM
  2. [SOLVED] Converting Time Values from One Time Zone to Another
    By Debraj Roy in forum Excel General
    Replies: 7
    Last Post: 09-03-2013, 06:49 AM
  3. Date and time conversion to another time zone
    By RUBEN PARRAS in forum Excel General
    Replies: 1
    Last Post: 05-21-2012, 09:03 PM
  4. [SOLVED] Time Zone etc
    By lsmft in forum Excel General
    Replies: 2
    Last Post: 07-12-2007, 06:50 PM
  5. Converting Time Values from One Time Zone to Another
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 12:12 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