+ Reply to Thread
Results 1 to 3 of 3

count a word repeated in a cell

  1. #1
    Registered User
    Join Date
    08-31-2008
    Location
    Munich
    Posts
    2

    count a word repeated in a cell

    Hello,
    I would like to write an UDF that counts how many times a word is repeated in a cell. see the picure enclosed.
    Attached Images Attached Images

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Why not use a formula such as

    =SUMPRODUCT((LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),"ASD","")))/LEN("ASD"))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    08-31-2008
    Location
    Munich
    Posts
    2

    Thumbs up

    Quote Originally Posted by VBA Noob View Post
    Why not use a formula such as



    VBA Noob

    Yes, why not, haha. Thanks alot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro: changing cell color based on count in cell
    By Vbort44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2008, 07:28 PM
  2. read cell content and use with Hyperlinks.Add Cell
    By apoc [t.i.m.] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2007, 10:02 AM
  3. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  4. Replies: 2
    Last Post: 07-05-2007, 11:07 AM
  5. count length for each line in one cell
    By christopheb in forum Excel General
    Replies: 16
    Last Post: 11-07-2006, 12:26 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1