Reputation: 1
Hi is there a way to count elements in array like that (im using google sheets)
I tried googling but didnt find anyone having the same problem
Upvotes: 0
Views: 144
Reputation: 1
try:
=LEN(REGEXREPLACE(A1; "[^,]"; ))+1
for array:
=INDEX(IF(A1:A="";;LEN(REGEXREPLACE(A1:A; "[^,]"; ))+1))
Upvotes: 0
Reputation: 3207
=counta(split(cellref,","))
will count the number of elements in the array (where cellref is location of your array to be split).
Upvotes: 1