#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Grant
 
Posts: n/a
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Question inkpassion Excel Discussion (Misc queries) 1 September 13th 05 12:05 AM
Count logic question ACDenver Excel Discussion (Misc queries) 7 August 17th 05 04:28 PM
Count If question Denise Excel Discussion (Misc queries) 3 August 16th 05 09:37 PM
Same Question with one more addition of a dash to count Mahendra Excel Discussion (Misc queries) 0 August 4th 05 11:37 PM
To Bob ( count question ) Nigel Excel Discussion (Misc queries) 3 April 28th 05 01:32 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"