#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 454
Default Count Q

How can I count up the number of non "Zeros" in A1, C1, E1?

I can't use a simple COUNTA as I may have "Zeros" in some cells and I
don't want those included in my answer

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Count Q

=COUNTIF(A1:A1,"<0")+COUNTIF(C1:C1,"<0")+COUNTIF (E1:E1,"<0")
or
=(A1<0)+(E1<0)+(C1<0)
--
Gary''s Student
gsnu200710


"Sean" wrote:

How can I count up the number of non "Zeros" in A1, C1, E1?

I can't use a simple COUNTA as I may have "Zeros" in some cells and I
don't want those included in my answer

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 454
Default Count Q

On Mar 17, 7:15 pm, Gary''s Student
wrote:
=COUNTIF(A1:A1,"<0")+COUNTIF(C1:C1,"<0")+COUNTIF (E1:E1,"<0")
or
=(A1<0)+(E1<0)+(C1<0)
--
Gary''s Student
gsnu200710



"Sean" wrote:
How can I count up the number of non "Zeros" in A1, C1, E1?


I can't use a simple COUNTA as I may have "Zeros" in some cells and I
don't want those included in my answer


Thanks- Hide quoted text -


- Show quoted text -


Thanks GaryS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Count Q

=SUM(COUNTIF(INDIRECT({"A1","C1","E1"}),"<0"))


"Sean" wrote:

How can I count up the number of non "Zeros" in A1, C1, E1?

I can't use a simple COUNTA as I may have "Zeros" in some cells and I
don't want those included in my answer

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Count Q

Teethless mama wrote...
=SUM(COUNTIF(INDIRECT({"A1","C1","E1"}),"<0"))

....

Shorter,

=COUNT(1/A1,1/C1,1/E1)

More flexible,

=SUMPRODUCT(FREQUENCY(x,{-1E-300;0}),{1;0;1})

where x is (A1,C1,E1) (INCLUDING the parentheses).



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Count Q

"Teethless mama" wrote in message
...
=SUM(COUNTIF(INDIRECT({"A1","C1","E1"}),"<0"))


It looks like it should work but in XL97 it returns 3 for me because
=COUNTIF(A1,"<0") returns 1

I don't know if it is the same in all versions.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Teethless mama" wrote in message
...
=SUM(COUNTIF(INDIRECT({"A1","C1","E1"}),"<0"))


"Sean" wrote:

How can I count up the number of non "Zeros" in A1, C1, E1?

I can't use a simple COUNTA as I may have "Zeros" in some cells and I
don't want those included in my answer

Thanks




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 Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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

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"