Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

report number of occurrences in a text string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
skyboy_psu - 13 Jan 2008 05:01 GMT
Hello all,

I want to report the number of times a particular item occurs in a
text string that is in a single cell.
For a simple example, If I have the string ABCABCABC....with 100
letters, how many times does the letter A occur, or the pair BC, and
so on?
JE McGimpsey - 13 Jan 2008 05:31 GMT
General way:

  =(LEN(A1) - LEN(SUBSTITUTE(A1,"text","")))/LEN("text")

Specifically:

  =LEN(A1) - LEN(SUBSTITUTE(A1,"A",""))

and

  =(LEN(A1) - LEN(SUBSTITUTE(A1,"BC","")))/2

In article
<81db02c7-6746-46c6-b609-a1ee62c4574b@e6g2000prf.googlegroups.com>,

> Hello all,
>
[quoted text clipped - 3 lines]
> letters, how many times does the letter A occur, or the pair BC, and
> so on?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.