Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mmainiero
Contributor II
Contributor II

Count Phrase in List

Hi, I would like to count the appearance of a word in a List of Sentences.


List:


Number     Phrase

1                Hello World

2                Qapla

3                the force awakens

4                the force may be with you

5                The Storm


Now I want to count for example “force” or “the”.


Force should be (2) and the (3)

I have tried

=SubStringCount(PHRASE,'force')

=count({<PHRASE={'force'}>}Number)

1 Solution

Accepted Solutions
ahaahaaha
Partner - Master
Partner - Master

Hi Markus

=substringcount(Concat(Phrase), 'force')

If words can begin with a capital letter, use, for example, function lower()

=substringcount(Lower(Concat(Phrase)), 'the')

Regards,

Andrey

View solution in original post

2 Replies
tresesco
MVP
MVP

Try with wildcard search, like:

=count({<Phrase={'*force*'}>}Number)

ahaahaaha
Partner - Master
Partner - Master

Hi Markus

=substringcount(Concat(Phrase), 'force')

If words can begin with a capital letter, use, for example, function lower()

=substringcount(Lower(Concat(Phrase)), 'the')

Regards,

Andrey