Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Need to know the number of times "fam" appears in a list of cells

In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Need to know the number of times "fam" appears in a list of cells

Try this
=COUNTIF(A1:A1000,"=fam")

"medpay" wrote:

In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Need to know the number of times "fam" appears in a list of cells

One way:

Assuming only interested in one count per cell:

=COUNTIF(A1:A1000,"*fam*")


If want to count multiple instances of "fam" within a cell:


=SUM(LEN(A1:A1000),-LEN(SUBSTITUTE(A1:A1000,"fam","")))/LEN("fam")

In article ,
medpay wrote:

In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Need to know the number of times "fam" appears in a list of cells

If "fam is the only thing in the cells, either of the two two methods
proposed will work.
if Fam is a portion of the cell entry try
=sum(if(len(A:A)-len(substitute(A:A,"Fam",""))1,1,0))
etered as an array control-shift-enter

"medpay" wrote:

In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Need to know the number of times "fam" appears in a list of cells

Should have mentioned that this needs to be array-entered...

In article ,
JE McGimpsey wrote:

If want to count multiple instances of "fam" within a cell:


=SUM(LEN(A1:A1000),-LEN(SUBSTITUTE(A1:A1000,"fam","")))/LEN("fam")



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Need to know the number of times "fam" appears in a list of cells

Be careful using formulas with SUBSTITUTE as this function is case-sensitive
and "fam" is not equal to "Fam"

"medpay" wrote in message
...
In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Need to know the number of times "fam" appears in a list of cells

That can be easily fixed

=SUMPRODUCT(LEN(A1:A1000)-LEN(SUBSTITUTE(LOWER(A1:A1000),"fam","")))/LEN("fam")

however maybe the OP was specific enough to want fam and not Fam or FAM

--


Regards,


Peo Sjoblom


"Tyro" wrote in message
...
Be careful using formulas with SUBSTITUTE as this function is
case-sensitive and "fam" is not equal to "Fam"

"medpay" wrote in message
...
In a large census of data cell A1 through cell A1000; some of these cells
contain the letters "fam" some do not, without have to count, is there a
formula?





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
cannot use "Create List" and "Share Workbook" same time Devendra Excel Discussion (Misc queries) 0 October 26th 06 06:05 AM
counting the number of times value of "x" appears in a row Hugh Excel Discussion (Misc queries) 2 August 2nd 06 12:17 PM
How can I count the # of times the word "Yes" appears in a range Meri Excel Worksheet Functions 5 July 7th 06 10:42 PM
Duplicate entry "x" number of times gennario Excel Discussion (Misc queries) 1 April 7th 06 11:57 PM
How do I add times that were creted with "=TEXT(A2-A1,"h:mm")"? Jaclyn Excel Worksheet Functions 3 December 29th 05 05:31 PM


All times are GMT +1. The time now is 07:20 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"