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 / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

Count If Array Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
carl - 21 Nov 2005 20:12 GMT
I am trying to build an array formula that will count the number of unique
values in Col D subject to the value in ColA="Directed", ColB=60, ColC=285.

Is it possible ?

Thank you in advance.
Peo Sjoblom - 21 Nov 2005 20:34 GMT
Although it is possible using a formula it is rather complicated, it's easy
using the advanced filter, assume the table is called MyTable where the
first data in A starts in A12, B in B12 and so on

in let's say G2 put

=AND(A12="Directed",B12=60,C12=285)

leave G1 blank

select the table and do data>filter>advanced filter, select copy to another
location (I prefer that compared to filter in place but you can do that as
well), in the list range type

MyTable

in the criteria range us

$G$1:$G$2

copy to select the cell where you want the new table, select unique records
only and click OK

Now you can just use

=COUNTA(Range)

where Range is the filtered column D without the header

Signature

Regards,

Peo Sjoblom

> I am trying to build an array formula that will count the number of unique
> values in Col D subject to the value in ColA="Directed", ColB=60, ColC=285.
>
> Is it possible ?
>
> Thank you in advance.
GerryK - 21 Nov 2005 20:52 GMT
=SUM(IF(FREQUENCY(IF((A1:A100="directed")*(B1:B100=60)*(C1:C100=285),MATCH(D1:D100,D1:D100,0),""),IF((A1:A100="directed")*(B1:B100=60)*(C1:C100=285),MATCH(D1:D100,D1:D100,0),""))>0,1))

(Ctrl + Shift + Enter) in some cell to count for the first 100 records.

HTH
GerryK

> I am trying to build an array formula that will count the number of unique
> values in Col D subject to the value in ColA="Directed", ColB=60, ColC=285.
>
> Is it possible ?
>
> Thank you in advance.
 
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



©2009 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.