+ Reply to Thread
Results 1 to 5 of 5

check if dates fall within a range

Hybrid View

mcinnes01 check if dates fall within a... 01-28-2011, 06:16 AM
NBVC Re: check if dates fall... 01-28-2011, 09:03 AM
mcinnes01 Re: check if dates fall... 01-28-2011, 12:40 PM
NBVC Re: check if dates fall... 01-28-2011, 12:44 PM
mcinnes01 Re: check if dates fall... 01-28-2011, 01:15 PM
  1. #1
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    check if dates fall within a range

    Hi I need to do some data clensing for the new payroll system we have, and basically I have to get all the absense legacy data in to an accurate format. What I am trying to do is check whether any dates fall within the range of any other dates. Im not sure how to do this.

    The is employee number which can be used to distinguish the dates and a from and to date. I need a way of checking and flagging if any dates fall within or match any other dates for that person.

    I have attached some example data and made sure there are a couple of date clash instances.
    Attached Files Attached Files
    Last edited by mcinnes01; 01-28-2011 at 01:15 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: check if dates fall within a range

    Can you indicate on your sample which rows would fall into this conditional check?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: check if dates fall within a range

    Hi basically I want to check if the range of dates in say d4 and e4 dont fall in to the date range in d5 and e5, d6 and e6, d7 and e7 etc and vice versa.

    So an example would be d17 and e17 falls in the date range in cells d16 and e16

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: check if dates fall within a range

    Does this work for you?

    =SUMPRODUCT(--($A$2:$A$29=A2),--($D$2:$D$29>=D2),--($E$2:$E$29<=E2))>1

    copied down.

    TRUE result means another date range has been found for the employee within the date range in that row.

  5. #5
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: check if dates fall within a range

    Yes perfect thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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