Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default how to get the number of 6's in a list

I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the criteria
but it didn't work. I also tried count . Any suggestions would be appreciated

Thanks
Tom
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default how to get the number of 6's in a list

Is this what you mean? Assuming that A2:A10 contains the data...

=SUMPRODUCT(LEN(A2:A10)-LEN(SUBSTITUTE(A2:A10,6,"")))

Hope this helps!

http://www.xl-central.com

In article ,
Tom wrote:

I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the criteria
but it didn't work. I also tried count . Any suggestions would be appreciated

Thanks
Tom

  #3   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default how to get the number of 6's in a list

Thanks a million!


"Tom" wrote:

I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the criteria
but it didn't work. I also tried count . Any suggestions would be appreciated

Thanks
Tom

  #4   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default how to get the number of 6's in a list

Thnks a million!

"Niek Otten" wrote:

Next to the column with the figures, enter this formula:

=LEN(A1)-LEN(SUBSTITUTE(A1,"6",""))
and fill down as far as you need. Then SUM this column

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Tom" wrote in message
...
I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the
criteria
but it didn't work. I also tried count . Any suggestions would be
appreciated

Thanks
Tom


  #5   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default how to get the number of 6's in a list

Thanks a million

"Domenic" wrote:

Is this what you mean? Assuming that A2:A10 contains the data...

=SUMPRODUCT(LEN(A2:A10)-LEN(SUBSTITUTE(A2:A10,6,"")))

Hope this helps!

http://www.xl-central.com

In article ,
Tom wrote:

I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the criteria
but it didn't work. I also tried count . Any suggestions would be appreciated

Thanks
Tom




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 175
Default how to get the number of 6's in a list

Hi

What if you have 66 in your range? Do you want to count it as 1 or 2?
If 2, the above solutions works well.

otherwise, try this array formula, confirm by Ctrl,Shift and Enter
=SUM(IF(LEN(E19:E31)-LEN(SUBSTITUTE(E19:E31,6,"")),1))

this will count 66 as 1 occurrence rather than 2


--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Tom" wrote:

I am trying to use countif to count the number of 6's in a list of numbers
from 1 to 100 for example. I only get one counted. I want it to count
16,26,36.46.56.60,61,62,63,64 etc. I tried putting a wildcard in the criteria
but it didn't work. I also tried count . Any suggestions would be appreciated

Thanks
Tom

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
Number list Jeff Klein Excel Worksheet Functions 4 November 15th 07 10:43 PM
Second last number in list TeddyTash Excel Worksheet Functions 2 September 25th 06 10:01 AM
How do i set up a list that sorts as Number/letter/number in orde xorex Excel Discussion (Misc queries) 3 September 8th 06 12:59 AM
again: number a list Mike Sound New Users to Excel 5 June 19th 06 09:54 PM
number a list Joe Fisher New Users to Excel 4 June 2nd 06 12:59 PM


All times are GMT +1. The time now is 07:48 AM.

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"