I've been pulling my hair out here. I can get the results via access and using autofilter so I know what number I need to arrive at.
I have a table of database registrants that includes, amongst other things, a date the record was entered and a unique identifier, in this case email address.
I'd like to count the number of UNIQUE registrants in the database that registered between jan 1st and oct 31st 2012.
I have tried something like
=SUMPRODUCT(($D$23:$D$18248>$C$11)*($D$23:$D$18248<M11)*(1/countif($W$23:$W$18248,$W$23:$W$18248))
Where column D is a date stamp and column W is the unique identifier (email address). Cell C11 is 1/1/12 and cell M11 is 11/1/12.
Have also tried another method - I sorted the table alphabetically by column W - identifier, then added a column to the right. Here is an example entry: =IF(W25=W26,"no","yes") where if the record matches the one below it is not unique. I then applied the sumproduct formula as above but rpelaced the 1/countif condition with (X23:X18248="yes").
In both cases I get the wrong number.
Have also tried countifs - no Joy.
There must be a best practice here? Any ideas welcome?
I have a table of database registrants that includes, amongst other things, a date the record was entered and a unique identifier, in this case email address.
I'd like to count the number of UNIQUE registrants in the database that registered between jan 1st and oct 31st 2012.
I have tried something like
=SUMPRODUCT(($D$23:$D$18248>$C$11)*($D$23:$D$18248<M11)*(1/countif($W$23:$W$18248,$W$23:$W$18248))
Where column D is a date stamp and column W is the unique identifier (email address). Cell C11 is 1/1/12 and cell M11 is 11/1/12.
Have also tried another method - I sorted the table alphabetically by column W - identifier, then added a column to the right. Here is an example entry: =IF(W25=W26,"no","yes") where if the record matches the one below it is not unique. I then applied the sumproduct formula as above but rpelaced the 1/countif condition with (X23:X18248="yes").
In both cases I get the wrong number.
Have also tried countifs - no Joy.
There must be a best practice here? Any ideas welcome?