Count

  • Thread starter Thread starter Chi
  • Start date Start date
C

Chi

Hi,
I use condition format for total column.

Ex: >=100 will be red
between 100 and 50 is green

< 50 will be black

I would like to count how many red, green and black I have.

Ex: 10 red, 20 green and 15 black.

Thank you
Chi
 
One way:

=COUNTIF(A1:A100,">=100") & " red, " &
SUMPRODUCT(--(A1:A100<100),--(A1:A100>=50)) & " green, " &
COUNTIF(A1:A100,"<50") & " black"

Note, you can't get at CF states directly from the worksheet.
 
-----Original Message-----
Hi,
I use condition format for total column.

Ex: >=100 will be red
between 100 and 50 is green

< 50 will be black

I would like to count how many red, green and black I have.

Ex: 10 red, 20 green and 15 black.


Chi
Why not just count the values?
=COUNTIF(K10:K12,"<50")
or and array formula
=COUNT(IF(K10:K12<50,K10:K12))
entered as Ctl + Shift + Enter

Peter
Peter (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top