Sep 26, 2020 10:48 AM
In {#Gew uit} i want to know how many times 25 (= teamnummer) is in {resul.gew.wedstr.uit}
I don’t know what formula to use.
I tried FIND({teamnummer}, {resul. gew. wedstr. uit}) but that counts all the nummers.
Sep 26, 2020 11:54 AM
Welcome to the Airtable community!
You need to use a rollup field.
I wrote about how to do this on my website.
Sep 26, 2020 09:38 PM
Thank you, but did doesn’t work.
If the {resul. gew. wedstr. uit} is 25,25,27,25,25 and the teamnummer is 25 then the result should be 4 (with your formula the result is always 1)
Sep 26, 2020 11:08 PM
Start with @kuovonne’s suggestion to change the lookup to a rollup. For the aggregation formula, use this:
ARRAYJOIN(values)
That will create a string that inserts a comma between each rolled up value. Using your latest example, it would look like this:
25,25,27,25,25
For the {#Gew uit}
formula, use this:
(LEN({resul. gew. wedstr. uit}) - LEN(SUBSTITUTE({resul. gew. wedstr. uit}, teamnummer, ""))) / LEN(teamnummer)
Here’s what’s happening:
25,25,27,25,25
this gives us a value of 14.,,27,,
which has a length of 6. 14 - 6 = 8