A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Try this ARRAY formula. The formula looks at 2 dates in A1 and b1 and counts the unique values in column D where the date in Col E is >=A1 and <=B1
See below for how to enter an array formula. The formula currently does up to 1000 rows, if you increase this then all the range sizes must be the same.
=COUNT(1/FREQUENCY(IF($E$1:$E$1000>=A1,IF($E$1:$E$1000<=B1,IF($D$1:$D$1000<>"",MATCH($D$1:$D$1000,$D$1:$D$1000,0)))),ROW($D$1:$D$1000)-ROW($D$1)+1))
This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.