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!
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!
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).
Fantastic! Thank you!
You're welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks