Thanks Will
The answer will be one to each disctint value in the array so the sum
will be the quantity of disctint values.
Also they are not numeric values, they are text strings.
Thanks.
willwonka ha escrito:
> I'm a little confused here as it seems that the answer would always be
> 1.
[quoted text clipped - 10 lines]
> > =+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
> > Thanks
Bob Phillips - 27 Jul 2006 15:39 GMT
Here is an example that counts unique A values where D = 16 and G = "BRY"
=SUM(IF(FREQUENCY(IF((A2:A12<>"")*(D2:D12=16)*(G2:G12="BRY"),MATCH(A2:A12,A2
:A12,0)),ROW(INDIRECT("1:"&ROWS(A2:A12))))>0,1))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Thanks Will
> The answer will be one to each disctint value in the array so the sum
[quoted text clipped - 18 lines]
> > > =+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
> > > Thanks
Bernie Deitrick - 27 Jul 2006 15:43 GMT
Gatochi,
You need a helper column of formulas:
=IF(K26 = $C$23,C26,"")
and then use the array formula:
=SUM(IF(E26:E46<>"",1/COUNTIF(E26:E46,E26:E46),0))
Assuming your helper column of formulas is column E....
HTH,
Bernie
MS Excel MVP
> Thanks Will
> The answer will be one to each disctint value in the array so the sum
[quoted text clipped - 18 lines]
>> > =+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
>> > Thanks
Gatochi - 27 Jul 2006 15:50 GMT
Thanks All of you!
Bernie Deitrick ha escrito:
> Gatochi,
>
[quoted text clipped - 34 lines]
> >> > =+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
> >> > Thanks