"CF" <cfea...@bellnet.ca> wrote in message
news:xmRlc.1007$dn2....@news20.bellglobal.com...
--
Regards
Frank Kabel
Frankfurt, Germany
That'd prevent some of us from improving on past work.
=SUMPRODUCT(LEN(TRIM(Rng))-LEN(SUBSTITUTE(TRIM(Rng)," ","")))+COUNTA(Rng)
This also treats hyphenated words as one word and nonword tokens as words.
Counting words more strictly defined requires VBA if it's to be done robustly.
--
To top-post is human, to bottom-post and snip is sublime.
You should try it. It produces incorrect results if there are two or more spaces
in sequence or any trailing spaces anywhere in the range.
"Frank Kabel" <frank...@freenet.de> wrote in message
news:OP90stgM...@TK2MSFTNGP09.phx.gbl...
Hi Harlan
should have added TRIM (as you did in your post). Thanks for the
correction
frank