Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default =COUNTIF(D4:D29,"0")

TY Very Much That Worked Great

"Dave Peterson" wrote:

Good point.

Another alternative...
=COUNT(D4:D29)-COUNTIF(D4:D29,0)

Which will distiguish between text 0 ('0) and the number 0.

Jerry W. Lewis wrote:

=COUNTIF(D4:D29,"<0") will count anything not zero (empty cells, text,
booleans, errors, etc). It also behaves strangely on sheets where the last
row ever used is <29.

To count only positive or negative numbers, use
=COUNTIF(D4:D29,"0")+COUNTIF(D4:D29,"<0")

Jerry

"Dave Peterson" wrote:

Maybe...

=COUNTIF(D4:D29,"<0")



Mike wrote:

I need this formula to also count negative numbers

--

Dave Peterson


--

Dave Peterson

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



All times are GMT +1. The time now is 07:19 PM.

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

About Us

"It's about Microsoft Excel"