#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default In Between Dates

I have a Travel Report Which Contains List of Employees who travels from
Place to Place with From and To Dates...Now i want to Know if an Employee
Travels for Ex:

ABC 11-04-2008 16-04-2008
ABC 13-04-2008 14-04-2008
ABC 15-04-2008 16-04-2008
He Should not Claim from 13/04/08 & 15/04/08 as he has already Claimed from
11/04/2008 to 16/04/2008 .So I need to wheather any Employee Claims in
between The Dates where he has already Claimed... Pls Help me ... Thanks in
Advance...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default In Between Dates

Kumar,

Assuming that your employees are in column A, and dates in B and C, starting in row 2, enter this in
D2, and copy down:

=IF(COUNTA(A2:C2)=3, IF(SUMPRODUCT(($A$2:$A$100=A2)*((($B$2:$B$100<=B2) *
($C$2:$C$100=B2)+($B$2:$B$100<=C2)*($C$2:$C$100= C2))=1))<1,"Overlap!",""),"")

Take out any line breaks that your software may put in - it should be all on one line...change the
100 to the row # of your last row of data.


HTH,
Bernie
MS Excel MVP


"Kumar" wrote in message
...
I have a Travel Report Which Contains List of Employees who travels from
Place to Place with From and To Dates...Now i want to Know if an Employee
Travels for Ex:

ABC 11-04-2008 16-04-2008
ABC 13-04-2008 14-04-2008
ABC 15-04-2008 16-04-2008
He Should not Claim from 13/04/08 & 15/04/08 as he has already Claimed from
11/04/2008 to 16/04/2008 .So I need to wheather any Employee Claims in
between The Dates where he has already Claimed... Pls Help me ... Thanks in
Advance...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compare 2 tables of dates to find the preceding dates Babi Excel Worksheet Functions 3 October 28th 08 05:52 AM
how do I sort a column of random dates into Consecutive dates Rob Gibson Excel Worksheet Functions 2 June 12th 07 05:10 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"