ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text Sum (https://www.excelbanter.com/excel-programming/326079-text-sum.html)

cisse_5

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.

JulieD

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.




Rowan[_2_]

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.


Mike Fogleman

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.






cisse_5

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.



All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com