COUNT # times text value occurrs in range

  • Thread starter Thread starter loscherland
  • Start date Start date
L

loscherland

I want to count the number of times the values 'TRUE' & 'FALSE' occurr
in a list

I've used the following formula but it's returned the wrong value:

=COUNTA(TRUE,or,FALSE,G7:G37)

That returned the value: 34 but there are only 31 records in the lis
which are TRUE or FALSE
 
Hi Loscherland

use the Countif function

=COUNTIF(E3:E21,"True")+COUNTIF(E3:E21,"False")

Cheers
JulieD
 
I want to count the number of times the values 'TRUE' & 'FALSE' occurrs
in a list

I've used the following formula but it's returned the wrong value:

=COUNTA(TRUE,or,FALSE,G7:G37)

That returned the value: 34 but there are only 31 records in the list
which are TRUE or FALSE?

You are not understanding COUNTA. It is counting once for
TRUE
or
FALSE
and once for every entry in the range G7:G37

If you just want to count the TRUE's and FALSE's in that range, then something
like:

=COUNTIF(G7:G37,TRUE)+COUNTIF(G7:G37,FALSE)


--ron
 

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