Identifying Overlapping Dates Per Product

cheesiepoof05

Board Regular
Joined
Dec 30, 2010
Messages
82
Hello, I'm trying to find a formula that will help me to identify any dates that are overlapping by each Animal in column C. I have an example below where two lines of the cat and two lines of the mouse overlap so I would like an error message pointing out those four rows. Thanks!

[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[/TR]
[TR]
[TD]Animals[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]7/1/2012[/TD]
[TD]6/30/2013[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]7/1/2013[/TD]
[TD]6/30/2014[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]7/1/2014[/TD]
[TD]6/30/2015[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]7/1/2012[/TD]
[TD]6/30/2013[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]3/15/2013[/TD]
[TD]6/30/2014[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]7/1/2014[/TD]
[TD]6/30/2015[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2016[/TD]
[/TR]
[TR]
[TD]Mouse
[/TD]
[TD]7/1/2012[/TD]
[TD]6/30/2013[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]7/1/2013[/TD]
[TD]6/30/2014[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]7/1/2014[/TD]
[TD]3/30/2016[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2016[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this:

=IF(COUNTIFS($C$2:$C$12,C2,$L$2:$L$12,">="&K2,$K$2:$K$12,"<="&L2)>1,"ERROR","OK")
 
Upvote 0

Forum statistics

Threads
1,225,749
Messages
6,186,802
Members
453,373
Latest member
Ereha

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