Results 1 to 5 of 5

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

Threaded View

  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
    =IF([@[Date/Time UTC]]="","",

    [@[Date/Time UTC]]

    +

    IF(

    PRODUCT(

    [@[Date/Time UTC]]
    -
    DATE(
    YEAR([@[Date/Time UTC]]),
    {4,11},
    1-WEEKDAY(DATE(YEAR([@[Date/Time UTC]]),{4,11},0))
    )-1/24

    )

    <0,

    1)

    /24)

    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.

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