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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -