Find overlapping date ranges in excel
Formula in cell E6:
=SUMPRODUCT((B6< =$C$6:$C$12)*(C6>=$B$6:$B$12))>1
Copy cell E6 and paste it down as far as needed.
See an explanation of this formula here:
Highlight overlapping date ranges using conditional formatting in excel
Download excel sample file for this tutorial.
overlapping dates.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
SUMPRODUCT(array1, array2, )
Returns the sum of the products of the corresponding ranges or arrays







June 1st, 2010 at 8:37 pm
Chandoo has posted a much shorter better formula: http://chandoo.org/wp/2010/06/01/date-overlap-formulas/
June 3rd, 2010 at 6:07 am
Oscar, could you explain the COUNT($B$6:$B$12)-1 bit in the formula...
June 3rd, 2010 at 6:59 am
Peter,
Here is a shorter formula: =SUMPRODUCT((C6< =$D$6:$D$12)*(D6>=$C$6:$C$12)*(ROW(C6)<>ROW($C$6:$C$12)))>0. Copy cell and paste it down as far as needed.
The formula returns TRUE if overlapping.
June 3rd, 2010 at 10:08 pm
Peter,
=SUMPRODUCT((C6< =$D$6:$D$12)*(D6>=$C$6:$C$12))>1 is shorter.
Copy cell and paste it down as far as needed.
The formula returns TRUE if overlapping.
June 6th, 2010 at 5:27 am
Thanks Oscar...... appreciate your prompt feedback