I need to count the number of unique customers who fit into a date range and meet a certain criteria
Dates are in A2:A40000
Customer names are in C2:c40000
Start Date is in X5
End Date is in 52
Filtering Criteria is a Yes or No in M2:M40000
I am trying to find out how many customers (there are multiple entries for the same customer so I need to only count the customer once no matter how many times their name appears) who have a N in column M.
I have tried this formula, but it returns a ridiculous result
=SUMPRODUCT(IF((A2:A40000<=Y5)*(A2:A40000>=X5),COUNTIFS(M2:M40000,"N")*1/COUNTIFS(A2:A40000,"<="&Y5,A2:A40000,">="&X5,C2:C40000,C2:C40000),0))
Please help
Dates are in A2:A40000
Customer names are in C2:c40000
Start Date is in X5
End Date is in 52
Filtering Criteria is a Yes or No in M2:M40000
I am trying to find out how many customers (there are multiple entries for the same customer so I need to only count the customer once no matter how many times their name appears) who have a N in column M.
I have tried this formula, but it returns a ridiculous result
=SUMPRODUCT(IF((A2:A40000<=Y5)*(A2:A40000>=X5),COUNTIFS(M2:M40000,"N")*1/COUNTIFS(A2:A40000,"<="&Y5,A2:A40000,">="&X5,C2:C40000,C2:C40000),0))
Please help