Counting the ones, twos and threes - Please Help
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! |
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! |
Counting the ones, twos and threes - Please Help
So would 11 count as 2 or 1?
-- Tips for Excel, Word, PowerPoint and Other Applications http://www.kan.org/tips "SWOcala" wrote: 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! |
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! |
All times are GMT +1. The time now is 11:51 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com