+ Reply to Thread
Results 1 to 2 of 2

See if timestamp is within two time values crossing midnight

  1. #1
    Registered User
    Join Date
    10-21-2019
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    1

    See if timestamp is within two time values crossing midnight

    Hello everyone!

    I have to check whether an array of timestamps (half an hour between each timestamp) are within two time values, where it can occur that a set of two time values cross midnight.

    There are three different time value sets called G1, G2 and G3.
    G2 is the only one working perfectly.
    G1 cross midnight, which I know is the problem, however, I do not know how to solve it
    G3 is NOT crossing midnight, but for some reason, it cannot figure out that the timestamps are within the time values?

    I hope to avoid VBA all together (for maintenance reasons) which is why I want to check each half-hour is within the set of time values or not.

    I hope someone can help me figure out these codes!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: See if timestamp is within two time values crossing midnight

    Note that your formula to create the half hour intervals also needed to be changed to account for passing midnight...
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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] Userform Time crossing Midnight not working
    By demarc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2019, 10:25 AM
  2. [SOLVED] Want to extract time before and after midnight for a time range that spans midnight
    By schurchill39 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2018, 04:18 PM
  3. [SOLVED] Formula Needed - Hours between times crossing midnight
    By meowmix7903 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 08-30-2017, 05:52 AM
  4. [SOLVED] Tiimelog - Time Difference Crossing Over or Past Midnight
    By mycon73 in forum Excel General
    Replies: 6
    Last Post: 10-20-2016, 06:41 AM
  5. [SOLVED] formula to calculate time difference crossing midnight
    By ditorejax in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2014, 08:27 PM
  6. Time crossing midnight
    By belle08 in forum Excel General
    Replies: 4
    Last Post: 01-27-2014, 03:47 PM
  7. Replies: 13
    Last Post: 11-04-2013, 02:30 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