WorksheetFunction.Count (Excel)

Counts the number of cells that contain numbers and counts numbers within the list of arguments.

Use Count to get the number of entries in a number field that is in a range or array of numbers. Arguments that are numbers, dates, or text representation of numbers are counted. Logical values and text representations of numbers that you type directly into the list of arguments are counted. Arguments that are error values or text that cannot be translated into numbers are ignored. If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, text, or error values in the array or reference are ignored. If you want to count logical values, text, or error values, use the CountA function.

Count (Arg1, Arg2, ..., Arg30)

Dim dblCount As Double
dblCount = WorksheetFunction.Count(Arg1:=)


Arg1, Arg2, ..., Arg30