I have a table with several dates Date_1 Date_2... date_52 I need a fromula that lets me calculate the number of occurances if any of these dates fall into a range selected by the user.( upper date and a lower date). Example user selects the dates 6/12/07 to 8/12/07, how many occurances in this range are present in my date table? if this range matched dates in Date_1 date_2... Date_40. I would like to return 40 in this instance.
What I am doing now is making a formula to compare each date and then adding them all up.
If date_1 in {?Lower date) to {?Upper date} then 1
then I add
d1+d2+d3....+d52 to get the number of occurances
This gives me 52 formulas. Is there a shorter way?