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

=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!