Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Counting the frequency of a text string

I've inherited some data to work with that I'm not sure how to approach.
Basically, multiple answers are contained within a cell. I need to extract
a sum of each individual answer. The data looks like this:


Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Regular
Classroom Students
Special Education Students;#ESOL Students;#Regular Classroom Students
Special Education Students

I need to know how often "Special Education Students" occurs in 70 rows of
data; how often "Minority Students" occur, how often "Regular Classroom
Students" occur, etc...

I've tried CountIf but that only works if the cell only contains "Special
Education Students"

Any assistance would be greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting the frequency of a text string

You can use wildcards (if the string you're looking for doesn't occur too far
into the cell (past the first 255 characters):

=COUNTIF(A:A,"*"&"Special Education Students"&"*")

Or

=COUNTIF(A:A,"*"&B1&"*")
if B1 contains: Special Education Students

=countif() will not find the substrings if they occur after the first 255 (0r
256???) characters.



Michael Styles wrote:

I've inherited some data to work with that I'm not sure how to approach.
Basically, multiple answers are contained within a cell. I need to extract
a sum of each individual answer. The data looks like this:

Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Regular
Classroom Students
Special Education Students;#ESOL Students;#Regular Classroom Students
Special Education Students

I need to know how often "Special Education Students" occurs in 70 rows of
data; how often "Minority Students" occur, how often "Regular Classroom
Students" occur, etc...

I've tried CountIf but that only works if the cell only contains "Special
Education Students"

Any assistance would be greatly appreciated.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Counting the frequency of a text string

Perfect. Thanks for your quick input!

"Dave Peterson" wrote in message
...
You can use wildcards (if the string you're looking for doesn't occur too
far
into the cell (past the first 255 characters):

=COUNTIF(A:A,"*"&"Special Education Students"&"*")

Or

=COUNTIF(A:A,"*"&B1&"*")
if B1 contains: Special Education Students

=countif() will not find the substrings if they occur after the first 255
(0r
256???) characters.



Michael Styles wrote:

I've inherited some data to work with that I'm not sure how to approach.
Basically, multiple answers are contained within a cell. I need to
extract
a sum of each individual answer. The data looks like this:

Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students
Special Education Students;#Economically Disadvantaged Students;#Minority
Students;#Regular Classroom Students;#Gifted and Talented Students
Special Education Students;#Economically Disadvantaged Students;#Regular
Classroom Students
Special Education Students;#ESOL Students;#Regular Classroom Students
Special Education Students

I need to know how often "Special Education Students" occurs in 70 rows
of
data; how often "Minority Students" occur, how often "Regular Classroom
Students" occur, etc...

I've tried CountIf but that only works if the cell only contains "Special
Education Students"

Any assistance would be greatly appreciated.


--

Dave Peterson


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 the number of instances of a string within another string Keith R Excel Worksheet Functions 3 March 5th 07 06:54 PM
Counting specific character in text string Bob Excel Worksheet Functions 3 January 18th 07 08:44 PM
Frequency of a word string in an excel database Danny_McCaslin Excel Discussion (Misc queries) 2 December 13th 06 06:11 PM
Excel - counting cells containing a text string Pegasus Host Excel Worksheet Functions 4 February 12th 05 07:31 PM
Counting every unique text string in a column doctor rick Excel Worksheet Functions 2 December 15th 04 07:36 AM


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