View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Kevin B[_2_] Kevin B[_2_] is offline
external usenet poster
 
Posts: 4
Default Count only once with multiple columns

Try the following to get your Active Counts:

=COUNTIF(A2:A8,"Active")

Use this for your cancelled counts:

=COUNTIF(A2:A8,"Cancelled")

"jhicsupt" wrote:

I have two columns:
A B
Cancelled ABC Company
Cancelled ABC Company
Active ABC Company
Cancelled ABC Company
Cancelled XYZ Company
Cancelled John Doe Company
Active The Smith Company

So I want to return this:
Cancelled 3
Active 2
Meaning that
there are 3 unique values counted once that are "Cancelled"
there are 2 unique values counted once that are "Active"

Thanks in advance