View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default calculate percentage of numbers <= zero in a given range

=COUNTIF(A1:A6,"<=0")/COUNT(A1:A6) and format as percentage.
--
David Biddulph

"spowel4" wrote in message
...
I need to calculate the percentage of numbers, within a range of
cells, that are equal to zero or less than zero.

Simple example: numbers are 8, -1, 8, 8, 0, 0

The percentage of numbers that are equal to zero or less than zero
would be 3/6 or 50%

How can I do this in Excel?