View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SWOcala SWOcala is offline
external usenet poster
 
Posts: 2
Default Counting the ones, twos and threes - Please Help

This is the one (no pun intended). Thanks so very much!

"Peo Sjoblom" wrote:

=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

"SWOcala" wrote in message
...
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!