Identifying if a date range is between a date range

DaveyK

New Member
Joined
Sep 19, 2014
Messages
3
Hi all,

I've been scratching my head for some time now and the solution is probably easier than I thought, however I need to find a solution that will identify if the range between the start date (Column E) and the 9mth date (Column F) falls between the dates specified in column H (See example below)

Start Date 9mth Date 01/08/2013 - 31/10/2013

17/06/2013 18/03/2014 To state yes or no
19/05/2014 17/02/2015 NO
20/08/2013 21/05/2014 YES
Etc...

I'm on Excel 2010 and I hope I have explained this well enough.

Thanks in advance :confused:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
in C2
=IF(AND(A$1>=A2,B$1<=B2),"Yes","No)
and copy down the column

where A1 is your start date and B1 is your 9mth Date (Put the dates in separate cells)
and your date columns start at A2 and B2
 
Upvote 0
startendwithin rangespecified date range13/01/201422/03/2014
job102/01/201414/02/2014no
job207/01/201417/02/2014no
job312/01/201420/02/2014no
job417/01/201423/02/2014yes
job522/01/201426/02/2014yes
job627/01/201401/03/2014yes
job701/02/201404/03/2014yes
job806/02/201407/03/2014yes
job911/02/201410/03/2014yes
job1016/02/201413/03/2014yes
job1121/02/201416/03/2014yes
job1226/02/201419/03/2014yes
job1303/03/201422/03/2014yes
job1408/03/201425/03/2014no
job1513/03/201428/03/2014no
job1618/03/201431/03/2014no
job1723/03/201403/04/2014no
job1828/03/201406/04/2014no
job1902/04/201409/04/2014no
job2007/04/201412/04/2014no
formula in D2
=IF(B2>=$I$1,IF(C2<=$J$1,"yes","no"),"no")

<colgroup><col><col span="2"><col><col span="4"><col span="2"><col></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks for the prompt reply Special-K99, I knew my example wouldn't explain it correctly!...my apologies.

I'll try again...

Column A
Start Date
(Cell - A2) 17/06/2013

Column B
End Date
(Cell - B2) 18/03/2014

Column C
Do the above dates fall between 01/08/2013 & 31/10/2013
(Cell - C2) - Yes or No

Hope this is better.
 
Upvote 0
Try

=IF(AND(DATEVALUE("01/08/2013")>=A2,DATEVALUE("31/10/2013")<=B2),"Yes","No)
 
Upvote 0
Hello DaveyK, welcome to MrExcel

What constitutes "yes"? Does there just have to be some overlap between the date ranges?

If so then try

=IF(OR(A2>DATE(2013,10,31),B2< DATE(2013,8,1)),"No","Yes")
 
Upvote 0
I think we've cracked it people...many thanks for your replies and welcome.

Now I know where to come in future. :)
 
Upvote 0

Forum statistics

Threads
1,203,515
Messages
6,055,845
Members
444,828
Latest member
StaffordStag

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top