Sep 06, 2021 11:07 PM
Hi all,
I am trying to count the number of ways this particular phrase appears in a cell
So for the image above, count the amount of times the string “Late Payment” occurs, i.e would return ‘2’.
Thanks team,
Sep 07, 2021 02:21 AM
Hi,
(len(arrayjoin(x))-len(substitute(arrayjoin(x),‘Y’,’’)))/len(‘Y’), where x - field, Y - phrase
but i think there should be easier way
Sep 07, 2021 01:25 PM
@Gabriel_Giannetakis This could be done using a rollup field. Its setup is very similar to a lookup field, but you can use an aggregation formula to run a calculation on the rolled-up data. In your case, I suggest limiting the rolled-up records using a condition (one of the options in the rollup field settings) so that you only retrieve records where your target field contains “Late Payment.” From there, the aggregation formula COUNTA(values)
will give you a count of the relevant records, indicating how many of them have late payments.