Count overlapping dates in excel
I have created some random overlapping date ranges in E17:E21 and I17:I21.
I also included a calender so you can easily count and verify overlapping dates.
Green cells are dates found once within the date ranges.
Red cells are overlapping dates. Dates found within at least two or more date ranges.
Array formula in cell F23:
Named range
Start ($E$17:$E$21)
End ($I$17:$I$21)
What is a named range?
Download excel sample file for this tutorial.
Count overlapping dates in excel.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
MIN(number1,[number2])
Returns the smallest number in a set of values. Ignores logical values and text
ROW(reference) returns the rownumber of a reference
SUM(number1,[number2],)
Adds all the numbers in a range of cells
FREQUENCY(data_array, bins_array)
Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array.
OFFSET(reference,rows,cols, [height],[width])
Returns a reference to a range that is a given number of rows and columns from a given reference
COLUMN(reference) returns the column number of a reference







July 20th, 2010 at 3:19 pm
Is there a formula that can count blocks
For eg in your picture if the green blocks had the letter G and the Red blocks had the letter R and I had to return 4 as the answer -3G + 1R
Is this possible through a formula
July 23rd, 2010 at 9:41 pm
Interesting question!
I will look into this as soon as possible!
Thank you for commenting!