#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Text Sum

I need code or a formula to return the amount of times text was found in a
range of cells. The problem is the data in the sheet is inconsistent for
example: StayInSchool, SchoolInitiative, SchoolsagainstDropout, etc. I need
to calculate the amount of times "schoo" or school" is shown in the specified
range. I need to be able to use a contains formula or string instead of < or
equal to. Because this data comes from several markets, their naming
convention is not uniform. Another option would be Access (or another
application) if you can provide something I can throw into the Builder in
Access that would help also.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Text Sum

Hi

you can use the COUNTIF function for this
e.g.
=COUNTIF(A1:A10,"*school*")

however, i would also love to know what you mean by the "throw into the
Builder in Access" ...

Cheers
JulieD

"cisse_5" wrote in message
...
I need code or a formula to return the amount of times text was found in a
range of cells. The problem is the data in the sheet is inconsistent for
example: StayInSchool, SchoolInitiative, SchoolsagainstDropout, etc. I
need
to calculate the amount of times "schoo" or school" is shown in the
specified
range. I need to be able to use a contains formula or string instead of <
or
equal to. Because this data comes from several markets, their naming
convention is not uniform. Another option would be Access (or another
application) if you can provide something I can throw into the Builder in
Access that would help also.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Text Sum

Try

=COUNTIF(A1:A100,"*School*")

Regards
Rowan

"cisse_5" wrote:

I need code or a formula to return the amount of times text was found in a
range of cells. The problem is the data in the sheet is inconsistent for
example: StayInSchool, SchoolInitiative, SchoolsagainstDropout, etc. I need
to calculate the amount of times "schoo" or school" is shown in the specified
range. I need to be able to use a contains formula or string instead of < or
equal to. Because this data comes from several markets, their naming
convention is not uniform. Another option would be Access (or another
application) if you can provide something I can throw into the Builder in
Access that would help also.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Text Sum

I believe he is referring to the Query builder in Access. Maybe thinking
about moving the data to Access, build a query to do the text count, and
then bring the query results back to Excel?
Mike F
"JulieD" wrote in message
...
Hi

you can use the COUNTIF function for this
e.g.
=COUNTIF(A1:A10,"*school*")

however, i would also love to know what you mean by the "throw into the
Builder in Access" ...

Cheers
JulieD

"cisse_5" wrote in message
...
I need code or a formula to return the amount of times text was found in a
range of cells. The problem is the data in the sheet is inconsistent for
example: StayInSchool, SchoolInitiative, SchoolsagainstDropout, etc. I
need
to calculate the amount of times "schoo" or school" is shown in the
specified
range. I need to be able to use a contains formula or string instead of
< or
equal to. Because this data comes from several markets, their naming
convention is not uniform. Another option would be Access (or another
application) if you can provide something I can throw into the Builder in
Access that would help also.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Text Sum

Thanks all for your response. I was there and tried it but the manager kept
insisting on this complex statement that didn't achieve the required result.
I only need to write 3 separate statements and this is simple and gets the
job done. Thanks Alot!!!!!!

"Rowan" wrote:

Try

=COUNTIF(A1:A100,"*School*")

Regards
Rowan

"cisse_5" wrote:

I need code or a formula to return the amount of times text was found in a
range of cells. The problem is the data in the sheet is inconsistent for
example: StayInSchool, SchoolInitiative, SchoolsagainstDropout, etc. I need
to calculate the amount of times "schoo" or school" is shown in the specified
range. I need to be able to use a contains formula or string instead of < or
equal to. Because this data comes from several markets, their naming
convention is not uniform. Another option would be Access (or another
application) if you can provide something I can throw into the Builder in
Access that would help also.

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
Using TEXT and &TEXT - display numbers with commas, underline text Gary Excel Discussion (Misc queries) 3 May 5th 23 03:46 AM
using a conditional suffix in text function format syntax=text(value,format_text) Brotherharry Excel Worksheet Functions 1 January 13th 09 03:03 PM
grab cell text from multi-tab workbook, show text in another workb pfa Excel Worksheet Functions 16 August 10th 07 08:50 PM
Text does not display in "Text boxs" and when wrapping text in a c Esteban Excel Discussion (Misc queries) 1 March 8th 07 11:59 PM
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' Dan E[_2_] Excel Programming 4 July 30th 03 06:43 PM


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