+ Reply to Thread
Results 1 to 5 of 5

Convert time from one time zone to local time.

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Convert time from one time zone to local time.

    Hello, I need some help. I have a attached a sample of what I need help with. I have a list of meetings located in different states. I live in AZ and I find myself looking up the time zone conversion quite often. I am looking for a way to automate the process.

    I have attached a list with the meeting times in column B and the State in column E and county in column D if needed. I would like to automatically fill-in the AZ time equivalent which is in column C.


    I found a good list of the states with their corresponding time zones. I have attached that as a sheet named "TimeZones".

    My first thought was a V-lookup but I can't figure out how to make that work. I would prefer a macro that can do it all but anything that works and is efficient would be great. Thanks!
    Attached Files Attached Files
    Last edited by glide2131; 04-12-2024 at 02:52 PM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Convert time from one time zone to local time.

    Hi there,

    Take a look at the attached version of your workbook and see if it does what you need.

    I've added an extra column to the TimeZones table, which calculates the time difference (in hours) between Daylight-Saving Time in the various states and Standard Time in AZ.

    The following User-Defined VBA function has been added to convert a state time to AZ time:

    Please Login or Register  to view this content.
    The above function is used in column C and takes the values in Column E (State) and B (State Time).


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Convert time from one time zone to local time.

    Here is my take on it.

    First I converted all ranges to Excel tables since Excel tables copy things down automatically.

    Most of the "heavy lifting" is done on the time zones sheet.

    DST starts on the second Sunday in March and ends on the First Sunday in November. The range I7:M8 calculate these dates.

    Cell J1 is the current date. Cell J2 determines if the current date is DST and Cell J3 is the offset to use in the VLOOKUP formula. It has a static name: My_Offset

    Back on Sheet1, Enter your state in cell B1. Cell E1 gets the time difference between it and GMT.

    Column F does the VLOOKUP for the local state, and column G is the difference between your state and the local state. These differences are applied to the local meeting time in column B to compute the time in your state in column C.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,065

    Re: Convert time from one time zone to local time.

    Following on the good work by dflak, with DST Start & End dates inside the table.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Re: Convert time from one time zone to local time.

    I have been reviewing these this week. They are all great. Thank you so much for helping me through this one!

+ 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. [SOLVED] Excel uses my local European time zone instead of the US west cost one
    By gerdgoebel in forum Excel General
    Replies: 5
    Last Post: 11-22-2023, 01:47 PM
  2. [SOLVED] How to convert date and time on one cell from one time zone to another
    By TEACHMENOW in forum Excel General
    Replies: 8
    Last Post: 01-27-2022, 12:08 PM
  3. How to convert from indian time zone to US time zone
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2018, 05:42 AM
  4. [SOLVED] EPOCH Time Conversion to local time and daylight savings time (DST)
    By cwwazy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2015, 02:14 PM
  5. Need Help with an user form that convert GTM Time to Other selected Time Zone
    By odoualex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2014, 11:52 AM
  6. How to set a formula to convert the time zone
    By Calculate Date range in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2006, 03:50 AM

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