Say I have a list LIST(“A”, “A”, “B”, “B”, “A”, “C”, “D”) and want to know how many “A” in the list. How can I do that with expression?
Few things I found out so far:
Solved! Go to Solution.
There is a bit simper solution:
IF(ISBLANK([LIST]), 0, COUNT(SPLIT(SUBSTITUTE([LIST] ,"SEARCH_TEXT","@"), "@"))-1)
If “SEARCH_TEXT” is not in the list, the split will still return one item list. So ‘-1’
** Assuming that 'SEARCH_TEXT" must be unique. If any longer text having ‘SEARCH_TEXT’ as sub-string, this solution will not work.
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |