ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count Question (https://www.excelbanter.com/excel-worksheet-functions/59686-count-question.html)

Grant

Count Question
 
I am trying to count the number of cells that are no equal to 0.
COUNTIF(L:L,"<0") includes all the blank cells. I need to count cells
that are not blank and not equal to zero.

T.I.A.
Ed



SteveG

Count Question
 

Ed,

If your values are always positive numbers then:

=COUNTIF(L1:L16,"0")

If there are also negatives then:

=COUNTIF(L1:L16,"0")+COUNTIF(L1:L16,"<0")

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=492184


Bob Phillips

Count Question
 
=SUMPRODUCT(--(L1:L1000<0))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Grant" wrote in message
...
I am trying to count the number of cells that are no equal to 0.
COUNTIF(L:L,"<0") includes all the blank cells. I need to count cells
that are not blank and not equal to zero.

T.I.A.
Ed






All times are GMT +1. The time now is 03:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com