6 Replies Latest reply on Feb 25, 2015 8:22 PM by disabled_Rob_2

# Count Number of Paragraphs In Text Field

### Title

Count Number of Paragraphs In Text Field

### Post

_i_ count my paragraphs simply by using get total values however that count includes the lines the spaces between two paragraphs.

Lost !!  For a easy way to count total number of paragraphs

• ###### 1. Re: Count Number of Paragraphs In Text Field

ValueCount ( Substitute ( TrimAll ( Substitute ( YourTextField ; [ " " ; "§§§" ] ; [ ¶ ; " " ] ) ; 1 ; 0 ) ; [ " " ; ¶ ] ; [ "§§§" ; " " ] ) )

• ###### 2. Re: Count Number of Paragraphs In Text Field

Well!!! That's amazing!!

You must be a machine?

_i_ could never come up with that in 3 embodiments!

_i_ do see it through the language arrangement though!

Thank you very much!

Good day!

Robert

• ###### 3. Re: Count Number of Paragraphs In Text Field

raybaudi is one of the "masters" when it comes to crafting a calculation to do stuff that otherwise looked nearly impossible to do. I've learned and use a number of techniques from posts that he'd made here in this forum.

• ###### 4. Re: Count Number of Paragraphs In Text Field

Well__ _i_ would be utterly amazed if he could piece together the following::

Field:Text: Topic contains letters.

Field: global: trying to display.. (was using a loop)

to display.. All unique Words in a value list followed by number of occurrences - how many times that unique word was used in the letter. _i_ got this far ok in the Loop,  but _i_ want this global value list of unique words wirh their occurrences numbers, wanting..

..to display the value list of words from top to bottom having the higher numbers first on top descending to bottom.

Robert

• ###### 5. Re: Count Number of Paragraphs In Text Field

Woops sorry_ Oh yea!! _i_ forgot!!

_i_ cannot seem to get this custom function below to fit into the expression,

Custom Function:  uniqueWords( minimumWordLength ; caseSensitive ; shouldSkipNumbers ).

"Thats" what makes this expression all so unique!! Is having this CF display the higher quality words!

Robert

• ###### 6. Re: Count Number of Paragraphs In Text Field

Always thinking outside The Box!

" GLOBAL FIELD ITEMS SORTED INSIDE A VARIABLE"

for further reading goto this new topic discussion!