I need to build a looping structure with the loop counter based upon the number of commas in an input cell.
Trying different substring functions (and combinations of) to get a count of commas in a cell, and not having much luck.
I thought i could just extract the commas, then do a length on the output which will give me the loop counter.
So far I cannot extract the commas, getting the same non-comparison error.
Part of the problem seems to me trying to specify a comma
Do I have to escape the comma in the string example?
For instance,
match_pattern(Query_2.SNP_PLANNER, ‘,’)
Get this error:
[Query:Query_3]
Invalid WHERE clause. Additional information: <Non-comparison expression < match_pattern(Query_2.SNP_PLANNER, ‘,’)
is not allowed. (BODI-1111313)>. (BODI-1111078)
Can anyone point me to the correct syntax to count the numbers of commas in a cell?