excel - How to count the numeric values from cell -
i have values in cell like.
1,2,4,45,64,jan. ans: 5 i want count number cell. possible?
you use split function in udf:
function countnumbers(r range) integer dim values, value variant dim result integer values = split(r.text, ",") result = 0 each value in values if isnumeric(value) result = result + 1 end if next value countnumbers = result end function from here, call within excel cell as:
=countnumbers(a1)
Comments
Post a Comment