Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 169
Default 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!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting Simon Minder Excel Discussion (Misc queries) 2 November 21st 07 11:00 PM
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Counting John Excel Discussion (Misc queries) 3 August 15th 07 06:20 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"