Having an excel column as below:
I need to find out the number of words in the column.
Try below formula-
=LEN(A2)-LEN(SUBSTITUTE(A2,",",""))+1
For dynamic spill array.
=MAP(A2:A5,LAMBDA(x,LEN(x)-LEN(SUBSTITUTE(x,",",""))+1))
TEXTSPLIT() was nice, why did you miss that=MAP(A2:A3,LAMBDA(x,COUNTA(TEXTSPLIT(x,","))))MAP()=MAP(A2:A5,LAMBDA(x,SUM(--(TEXTSPLIT(x,",")<>"")))).
DOG,CAT,ELEPHANTcount 4? It should be 3.['A','B,C,D','E,F']