+ Reply to Thread
Results 1 to 2 of 2

word count with numbers embedded within text

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2011
    Posts
    13

    word count with numbers embedded within text

    Hello there!


    I need excel to generate word counts, but I have embedded numbers within the text which I don't want to be included in the count. Example: "21 I went to the store with my grandma 22 and then bought some candy. 23 Afterward, we went home".

    I would want a count of the words that doesn't include the numbers (20 vs. 17).

    Thanks in advance!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: word count with numbers embedded within text

    A bit long-wounded

    =LEN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""),0,"")))-LEN(SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""),0,""))," ",""))+1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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. [SOLVED] Text count in word to text count in excel.
    By frisbie17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-27-2012, 04:54 PM
  2. [SOLVED] Count how many times a word occurs in a cell containing text
    By frisbie17 in forum Excel General
    Replies: 2
    Last Post: 08-01-2012, 02:31 PM
  3. Putting text into embedded word
    By HarryKlein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2011, 07:20 AM
  4. [SOLVED] How to create an embedded Excel workbook in Word with cell text >
    By Drew Lettington in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2006, 02:55 PM
  5. Replies: 0
    Last Post: 01-23-2005, 03:06 AM

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