I tried this, and it did work neatly on well-edited text. But for more messy input, it counted excess embedded spaces as 'words' - separate items, presumably. Madawc Williams
East Anglia
Great Britain
TRIM() may solve leading or trailing spaces, but would not solve cases where there is more than one space between the words.
To solve cases where there are double spaces within the string, use:
------------------------------------------------
UBOUND(Split(REPLACE({Your_String}," "," ", " ")
------------------------------------------------
This starts by replacing any double space within the string by a single space.
Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.