+ Reply to Thread
Results 1 to 12 of 12

Converting times to a different time zone

  1. #1
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Converting times to a different time zone

    Hi I have times in a custom column formatted such as 8:00 PM and 12:50 AM and so on.
    The time zone is GMT +10
    I need to convert the time to GMT +2
    So basically 8 hours less.
    I have tried some things that just don't work. Is this possible to do please?
    Our internet is affected by the massive floods near Brisbane Australia so I am on my mobile. Thanks for any help.
    Doug

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Converting times to a different time zone

    Hi Doug,

    You could use >> =TIME(HOUR(A1)-8,MINUTE(A1),SECOND(A1))

    Notice the minus 8 for the first hour argument
    HTH
    Regards, Jeff

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Converting times to a different time zone

    ...if times in A1 are less than 08:00:00 then you may need a slight modification to Jeff's formula.

    =TIME(IF(A1*24<8,HOUR(A1)+16,HOUR(A1)-8),MINUTE(A1),SECOND(A1))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138
    Thank you Jeffrey. It worked great. Could i ask for an extra step in converting the requied time to 24 hour format please. Not a prblem if i need an extra column. Reps added anyway. Thanks again


    Quote Originally Posted by jeffreybrown View Post
    Hi Doug,

    You could use >> =TIME(HOUR(A1)-8,MINUTE(A1),SECOND(A1))

    Notice the minus 8 for the first hour argument

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Converting times to a different time zone

    Just change the custom format

    Custom Format
    • Right click cell (or Ctrl + 1)
    • Format Cells
    • Number
    • Custom
    • Type: hhmm

  6. #6
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138
    Hi Richard made the reply to jeffrey just after your post.
    Thanks for the modification. Tested it also and works perfectly. Cheers doug

    Quote Originally Posted by Richard Buttrey View Post
    ...if times in A1 are less than 08:00:00 then you may need a slight modification to Jeff's formula.

    =TIME(IF(A1*24<8,HOUR(A1)+16,HOUR(A1)-8),MINUTE(A1),SECOND(A1))

  7. #7
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138
    Thanks jeffrey. Really helped me out with this.
    Cheers doug


    Quote Originally Posted by jeffreybrown View Post
    Just change the custom format
    Custom Format
    • Right click cell (or Ctrl + 1)
    • Format Cells
    • Number
    • Custom
    • Type: hhmm

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Converting times to a different time zone

    Hi Doug,

    Glad it worked out for you and thanks for the rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138
    Cant see the add reputation on my phone . I will revisit when i have internet back for my pc and fix it for you guys

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Converting times to a different time zone

    No worries Doug. Stay safe and dry.

  11. #11
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Converting times to a different time zone

    Updated the reps - can't find the solved box

  12. #12
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Converting times to a different time zone

    Found it -

+ 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. 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
  2. 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
  3. [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
  4. Converting Time Zone
    By prodigy06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2011, 12:22 AM
  5. Macro for converting Time Zone
    By humacdeep in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-21-2011, 06:05 PM
  6. converting time zones for negative times
    By LENITH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2007, 05:47 AM
  7. 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