Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Array Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gatochi - 27 Jul 2006 15:09 GMT
Hi,
I need a formula to count disctints like =
SUM(1/COUNTIF(C26:C46,C26:C46) but I need conditionals in the range and
criteria of countif.
I've tried this, but its not working.
=+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
Thanks
willwonka - 27 Jul 2006 15:18 GMT
I'm a little confused here as it seems that the answer would always be
1.

Anyway, perhaps SUMPRODUCT might work for you:

SUMPRODUCT((K26:K46=C23)*(C26:C46)*(1))

> Hi,
> I need a formula to count disctints like =
[quoted text clipped - 3 lines]
> =+SUM(1/COUNTIF(IF(K26:K46=C23,C26:C46),IF(K26:K46=C23,C26:C46))-1)
> Thanks
Gatochi - 27 Jul 2006 15:28 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.