+ Reply to Thread
Results 1 to 5 of 5

Determining if a datetime falls within start and end date times

Hybrid View

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    egypt
    MS-Off Ver
    Excel 2003
    Posts
    7

    Determining if a datetime falls within start and end date times

    Gents,

    Please i need an advise ASAP i have been using this statement and it cant help

    if(and(c1>=a1:a144,c1<=b1:b144),"yes","no"))

    and it just works for the first 2 values c1, c2 and doesn't fit for the others.
    the case is i have more than one event at the same video and i need to confirm that no event was taken unless it is between start and end.

    here are some samples:

    Start dtime End Dtime Event Dtime
    16/09/2013 22:13:34 16/09/2013 22:14:18 16/09/2013 22:13:38
    16/09/2013 22:15:57 16/09/2013 22:24:30 16/09/2013 22:16:02
    16/09/2013 22:24:30 16/09/2013 22:33:49 16/09/2013 22:17:32
    16/09/2013 22:33:53 16/09/2013 22:35:05 16/09/2013 22:19:02
    16/09/2013 22:35:05 16/09/2013 22:39:57 16/09/2013 22:20:02

    So as you can see there are more than one event between one start and end dtimes

    thanks guys

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,333

    Re: Determining if a datetime falls within start and end date times

    =if(and(c1>=a1,c1<=b1),"yes","no")
    If this does not work post a xls file
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    egypt
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Determining if a datetime falls within start and end date times

    popipipo,
    this doesnt work because sometimes there are more than one event in the same video (start and end) so it will not work with a range as you can check the sample

  4. #4
    Registered User
    Join Date
    09-25-2013
    Location
    egypt
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Determining if a datetime falls within start and end date times

    here is the case attached
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,333

    Re: Determining if a datetime falls within start and end date times

    Take a look at this
    column F: 1 means yes
    column H: substitute 1 into yes
    column J: combination of F and H
    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. Determining if a datetime falls within start and end date times
    By migooz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2013, 03:05 PM
  2. [SOLVED] Determining start date if I have the end date identified
    By mrh_consulting in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2012, 01:31 PM
  3. Replies: 3
    Last Post: 10-13-2012, 08:09 PM
  4. Replies: 2
    Last Post: 01-10-2012, 04:06 PM
  5. Count how many times a given date falls between date pairs
    By XVar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2009, 07:19 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