Assuming your formula is in Sheet3,
First assuming you enter your desired start and end row numbers for the range in X1 and X2 of Sheet3, then in the Data sheet, go to Insert|Name|Define and enter a name like: Data and then enter a formula in the Refers to box:
=INDEX(Data!$A:$A,Sheet3!$X$1):INDEX(Data!$L:$L,Sheet3!$X$2)
which assumes the columns in the database are from column A to column L, you can adjust those...
then in sheet3, assuming the start and end dates would be in Z1 and Z2 use formula:
=SUM(IF(FREQUENCY(IF((LEN(INDEX(Data,0,11))>0)*(INDEX(Data,0,10)>=Z1)*(INDEX(Data,0,10)<=Z2),MATCH(INDEX(Data,0,11),INDEX(Data,0,11),0),""), IF((LEN(INDEX(Data,0,11))>0)*(INDEX(Data,0,10)>=Z1)*(INDEX(Data,0,10)<=Z2),MATCH(INDEX(Data,0,11),INDEX(Data,0,11),0),""))>0,1))
CSE confirmed
Bookmarks