+ Reply to Thread
Results 1 to 4 of 4

cell word count excluding duplicates

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question cell word count excluding duplicates

    Hello!
    I am looking for a way to get a cell word count that excludes duplicate words.
    For example if this sentence was in a cell: The brown dog ate the brown dog bone.
    the unique word total would be 5.
    Thank you for any help you can give me!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: cell word count excluding duplicates

    Hi and welcome to the forum!

    Try this array formula**:

    =SUM(IF(FREQUENCY(MATCH(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)+1,255)),TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)+1,255)),0),ROW(INDIRECT("1:"&LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1))),1))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: cell word count excluding duplicates

    Fantastic! Thank you!

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: cell word count excluding duplicates

    You're welcome!

+ 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. Pivot count excluding duplicates
    By Tom_J_W in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-02-2013, 03:14 AM
  2. Create New Count List Excluding Duplicates
    By Scudder93 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2012, 10:33 AM
  3. Count excluding duplicates with an extra condition
    By konradk in forum Excel General
    Replies: 2
    Last Post: 09-20-2011, 10:39 AM
  4. [SOLVED] Formula to count cells between dates excluding duplicates
    By Vegs in forum Excel General
    Replies: 11
    Last Post: 07-05-2006, 02:15 PM
  5. Count excluding Duplicates
    By GRM via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-15-2005, 05:10 PM

Tags for this Thread

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