+ Reply to Thread
Results 1 to 2 of 2

Checking whether multiple individual dates fall within any date ranges

  1. #1
    Registered User
    Join Date
    04-03-2016
    Location
    Europe
    MS-Off Ver
    2011
    Posts
    1

    Question Checking whether multiple individual dates fall within any date ranges

    Hello everyone,

    I've been bugged by this problem today and haven't been able to find a solution. I've found another thread on this forum with a very similar problem but I'm not proficient enough in Excel to implement the given solution on my own problem. (http://www.excelforum.com/excel-form...te-ranges.html)

    I have three columns. The first one (logtime) contains the date-time a specific measurement was taken in a machine. The second (start) and third (end) columns contain the start and end date-times of when the machine has been shut down. Therefore, I would like to see which measurements were taken while the machine was shut down, as I will remove these from the main data set before moving on to analysis.

    I have taken a screenshot of the relevant columns: http://imgur.com/59exMaT

    I have also uploaded the worksheet (.xlsx) seen in the screenshot in case anyone would like to download the file and try something out: https://www.dropbox.com/s/xvx2b1i2iwglxns/dat.xlsx?dl=1

    Let me know if there is any more information I can provide.

    Any help, advice, and solutions will be greatly appreciated. Thanks!

  2. #2
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Checking whether multiple individual dates fall within any date ranges

    The formula below will identify the relevant rows where the logtimes in Col A were during shutdowns as detailed in Cols B and C. It goes in D2 and copied down.
    If the result in D is -1, this means that the logtime in Col A on that row did not occur during a shutdown period. If the result in D is positive, this is the row number
    of the shutdown entry that relates to the logtime in Col A.
    On that basis, the Logtime in A3 was during a shutdown listed in Row 1 (yellow)
    and
    The logtimes in A5 and A6 were during the shutdown listed in Row 3 (green)

    =SUMPRODUCT(--($B$2:$B$11<=A2)*($C$2:$C$11>=A2),ROW($B$2:$B$11))-1
    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. Calculate Number of dates that fall within ranges
    By ptrling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2015, 07:31 AM
  2. Formula to find dates that fall in several ranges
    By samcdavies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 11:20 AM
  3. [SOLVED] checking if a date is in between a certain range. with multiple ranges
    By biddum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2012, 02:56 PM
  4. Does date and time fall between two dates
    By cf3d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2012, 10:10 AM
  5. Replies: 1
    Last Post: 04-10-2008, 11:47 AM
  6. Replies: 8
    Last Post: 12-21-2007, 12:21 AM
  7. how do i sum 2 values that fall between date ranges?
    By Neil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2005, 02:06 PM

Tags for this Thread

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