+ Reply to Thread
Results 1 to 5 of 5

How to convert a set of UTC dates/times into GMT/BST

  1. #1
    Forum Contributor
    Join Date
    04-23-2014
    Location
    United Kingdom
    MS-Off Ver
    Microsoft 365
    Posts
    149

    How to convert a set of UTC dates/times into GMT/BST

    I'm trying to convert a set of dates/times that are stored in Universal Coordinated Time (UCT) format into London time, which switches between British Summer Time (BST) and Greenwich Mean Time (GMT) each year.

    Let's be crystal clear about how the UK time system works, using 2023 as an example.

    On 26 March 2023 (the last Sunday) at 01:00:00 UTC (01:00:00 GMT), the clocks go forward one hour, meaning the time becomes 02:00:00 BST.

    On 29 October 2023 (the last Sunday) at 01:00:00 UTC (02:00:00 BST), the clocks go back one hour, meaning the time becomes 01:00:00 GMT.

    2023-10-27_11-13-42 2.png

    The formula I've written in B2 almost achieves this, except it doesn't jump forward or back at the aforementioned times stated because it's a second out.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Currently, when it's 26 March 2023, the time has to be 01:00:01 UTC (01:00:01 GMT) for the jump forward to trigger, thus becoming 02:00:01 BST.

    And when it's 29 October 2023, the time has to be 01:00:01 UTC (02:00:01 BST) for the jump backwards to trigger, thus becoming 01:00:01 GMT.

    How can I adjust the formula so it works perfectly?
    Attached Files Attached Files
    Last edited by Statto; 10-27-2023 at 08:08 AM.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,527

    Re: How to convert a set of UTC dates/times into GMT/BST

    Try in B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,527

    Re: How to convert a set of UTC dates/times into GMT/BST

    Sorry, I forgot the part about the weekday has to be the last Sunday.
    Please disregard my formula for now.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,527

    Re: How to convert a set of UTC dates/times into GMT/BST

    I have added one hour (+TIME(1,0,0)) to the DATE function in your formula, so please give it a try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: How to convert a set of UTC dates/times into GMT/BST

    Or try this formula:

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Convert date/times to just dates on multiple non contiguous cells
    By Mingeita in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-17-2023, 11:04 AM
  2. [SOLVED] [SOLVED] Convert two dates / times to minutes
    By k3wl6uy in forum Excel General
    Replies: 4
    Last Post: 10-10-2017, 01:25 PM
  3. Replies: 1
    Last Post: 03-01-2016, 09:35 PM
  4. Replies: 21
    Last Post: 05-11-2015, 03:53 PM
  5. Convert string dates and times to different format
    By excel12121 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2014, 02:39 PM
  6. Replies: 4
    Last Post: 08-11-2014, 07:08 PM
  7. Comparing dates/times 'within' set dates/times
    By JimFiggs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2010, 05:57 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