Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu Show menu

COUNTNEG function

Description

Count negative numbers function. COUNTNEG(range) counts the number of negative values (< 0) in range.

The argument range can be a list of numbers, cell addresses, cell ranges (such as A1:A10).

Range can also be a matrix. In that case the function returns a matrix with one row and the same number of columns, with each element the COUNTNEG of the corresponding column. If range is a row matrix, it is converted to a column matrix first.

Example

COUNTNEG(A1:A5) returns 3 if the contents of 3 cells in the range A1:A5 are negative values.

Calculator

COUNTNEG(  

Related functions