Ive been trying to count distinct values in column A (date) based on a selection in C1 in this case November i.e 11th month of year
The below works nicely in returning just the data associated with November (11)
I have been using the below where C1&"*" is equal to the number of month
=COUNTIFS('Detailed transactions cleaned'!E2:E268,">=12:00:01 AM",'Detailed transactions cleaned'!E2:E268,"<=12:00:10 AM",'Detailed transactions cleaned'!B2:B268, "inbound",'Detailed transactions cleaned'!A2:A268,C1&"*")
The problem occurs when I try to do a selection of distinct count of days in column A
This below returns 3 days since it includes October 31 i.e. 10 month of year and November 1,2 (see table above)
I would want to select C1 = 11 and only return November i.e. 2 days November 1,2 if I select C1 = 10 the 1 day Oct 31
=SUMPRODUCT(('Detailed transactions cleaned'!A2:A268<>"") / COUNTIF('Detailed transactions cleaned'!A2:A268,'Detailed transactions cleaned'!A2:A268 & ""))
what I want is something that would be
=SUMPRODUCT(('Detailed transactions cleaned'!A2:A268<>"") / COUNTIF('Detailed transactions cleaned'!A2:A268,'Detailed transactions cleaned'!A2:A268 & ""))
and constrained by
=COUNTIFS('Detailed transactions cleaned'!E2:E268,">=12:00:01 AM",'Detailed transactions cleaned'!E2:E268,"<=12:00:10 AM",'Detailed transactions cleaned'!B2:B268, "inbound",'Detailed transactions cleaned'!A2:A268,C1&"*")
Bookmarks