Highlight duplicate values and overlapping dates in excel
Filed in Conditional formatting, Dates, Duplicate values, Excel on Oct.09, 2010. Email This article to a Friend
Hi, I have a situation where I want to count if this value is duplicate and if it the dates are overlapping as well. Is there anyway to work this out?
eg
Serial | Start date | End Date
ABC | 01.01.2009 | 31.12.2009
BCD | 01.06.2009 | 31.12.2009
ABC | 01.07.2009 | 30.06.2010
So it should list the first and third entry.
Answer:
Highlight duplicate values and overlapping dates
- Select a cell range
- Click "Home" tab
- Click "Conditional Formatting" button
- Click "New Rule.."
- Click "Use a formula to determine which cells to format"
- Type =SUMPRODUCT(($B2<=$C$2:$C$5)*($C2>=$B$2:$B$5)*($A2=$A$2:$A$5))>1 in "Format values where this formula is TRUE" window.
- Click "Format.." button
- Click "Fill" tab
- Select a color for highlighting cells.
- Click "Ok"
- Click "Ok"
- Click "Ok"
Download excel sample file for this tutorial.
duplicate values and 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







October 10th, 2010 at 11:26 pm
Thanks. It works perfectly.
January 15th, 2012 at 4:02 pm
Hi Oscar,
Please help me.
In due date i used this formula to track if the employee already exceed in her Inactive status.
NOTE: g1=DATE TODAY
=IF(E2=$G$2+5,"5 DAYS BEFORE DUE",IF(E2=$G$2,"EXPIRED",IF(E2<$G$1,"EXCEEDED", "--"))
If ever the employee Back to work from Inactive status. I would like to erase automatic the "EXCEEDED" in column Due date.
What formula can i used? Please help me
HRID LName Status Start End Due Date
57456 RODRIGUEZ INACTIVE 6-Jan-12 15-Jan-12
65153 MENDOZA INACTIVE 1-Sep-08 9-Apr-12
57456 RODRIGUEZ BACK TO WORK 15-Jan-12 5-Jan-12
57613 JOSE INACTIVE 16-Mar-10 8-Jun-11
January 16th, 2012 at 10:38 am
Ana,
Download excel *.xlsx file
Ana.xlsx
January 17th, 2012 at 5:06 am
Oscar,
Thank you so much for your help... This is great...
Thank you Mr.Genius
January 18th, 2012 at 9:09 am
Hi Oscar,
If possible, if ever I can add Separated status in column C(Status). If ever she BACK TO WORK or SEPARATED the "EXCEEDED" in column Due date automatic erase.Please advise
Thank you
January 22nd, 2012 at 10:42 pm
Oscar,
Please help me....What formula can i used?
February 3rd, 2012 at 4:49 am
Oscar,
Please help.....
February 3rd, 2012 at 8:59 am
Ana,
I don´t think I understand. Your first question:
If ever the employee Back to work from Inactive status. I would like to erase automatic the "EXCEEDED" in column Due date.
Your next question:
add Separated status in column C(Status). If ever she BACK TO WORK or SEPARATED the "EXCEEDED" in column Due date automatic erase.
Anyway I tried, download *.xlsx file:
http://www.get-digital-help.com/wp-content/uploads/2010/10/ANA1.xlsx
February 3rd, 2012 at 4:14 pm
Oscar,
This is awesome formula Oscar. Thank you so much .
THANK YOU........
February 11th, 2012 at 4:14 pm
ah great formula Oscar! interesting...