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

Popular posts from this blog

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -

Receive udp packets in android gstreamer -