Counting the ones, twos and threes - Please Help

S

SWOcala

I have been reading for some time and cannot find what I thought would be an
easy one! I need to COUNTIF or SUMPRODUCT and find how many instances of 1
appears in any number in any cell. Then, I need to do the same for the
numberals 2 and 3. Please, can someone help. I expect to be using A1 through
U1 only.
Thanks!
 
P

Peo Sjoblom

=COUNTIF(A1:U1,1)

or maybe you want

=SUMPRODUCT(LEN(A1:U1)-LEN(SUBSTITUTE(A1:U1,1,"")))

the latter will count 3 ones if one cell look like 2111

--


Regards,


Peo Sjoblom
 

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

Top