Results 1 to 7 of 7

Thread: Count the occurrences of text, characters, or words in Excel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0
    littleiitin,

    Try:

    In A1:
    Rarrurrlas

    In B1:
    =(LEN(A1)-LEN(SUBSTITUTE(A1,"rr","")))/2
    The result in B1 would be:
    2


    The last number in the formula, the 2, is the actual length of the string rr that you are searching for.
    =(LEN(A1)-LEN(SUBSTITUTE(A1,"rr","")))/2



    If cell A1 contained:
    RarruXXlas

    And cell B1 containd the same formula:
    =(LEN(A1)-LEN(SUBSTITUTE(A1,"rr","")))/2

    The result in B1 would be:
    1



    Have a great day,
    Stan
    Last edited by stanleydgromjr; 09-24-2011 at 06:12 PM.

Similar Threads

  1. Wrap Text On Spaces Up To A Maximum Number Of Characters Per Line
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 15
    Last Post: 12-20-2016, 09:47 AM
  2. Remove Special Characters From Text Or Remove Numbers From Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 5
    Last Post: 05-31-2013, 04:43 PM
  3. Extract Certain Characters From A Text String
    By bobkap in forum Excel Help
    Replies: 5
    Last Post: 05-24-2013, 06:25 AM
  4. Replies: 10
    Last Post: 12-10-2012, 11:28 PM
  5. Count words having more than one character in a cell
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 3
    Last Post: 03-13-2012, 08:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •