I have this formula
which counts the comma separated values in cells. My problem is the formula counts the blank cells which contains formulas as 1. How can I fix this? thanks.
for example:
if B4 is {1,2,3}, the result will be 3.
if B4 is {25}, the result will be 1.
if B4 is {}, the result will be 1. (which should be 0).
Code:
=LEN(B4)-LEN(SUBSTITUTE(B4,",",""))+1
for example:
if B4 is {1,2,3}, the result will be 3.
if B4 is {25}, the result will be 1.
if B4 is {}, the result will be 1. (which should be 0).