Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

=Countif   (not zero)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 19 Jun 2005 21:06 GMT
Hello All,
Using Excel XP.

I have the following sample worksheet:
                 A
--------------------
1             17
2               6
3             20
4               0
5             11
6               0
-----------------
7                2      (=countif(A1:A6,"<15", ???

I want to count the values in A1:A6 if they are less than 15 but not
counting any zero's.
In A7 I would want the result to be 2.  Any help writing the formula would
be
appreciated.

Mike
Ragdyer - 19 Jun 2005 21:21 GMT
Try these:

=COUNTIF(A1:A6,"<15")-COUNTIF(A1:A6,0)

=SUMPRODUCT((A1:A6>0)*(A1:A6<15))

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> Hello All,
> Using Excel XP.
[quoted text clipped - 18 lines]
>
> Mike
JE McGimpsey - 19 Jun 2005 21:21 GMT
one way:

   =SUMPRODUCT(--(A1:A6<15),--(A1:A6<>0))

> Hello All,
> Using Excel XP.
[quoted text clipped - 18 lines]
>
> Mike
Mike - 19 Jun 2005 21:33 GMT
thanks for your help, got it working.
Mike
> one way:
>
[quoted text clipped - 23 lines]
>>
>> Mike
Bill Kuunders - 19 Jun 2005 21:32 GMT
=COUNTIF(A1:A6,"<15")-COUNTIF(A1:A6,"=0")
did the trick for me

Signature

Greetings from New Zealand
Bill K

> Hello All,
> Using Excel XP.
[quoted text clipped - 18 lines]
>
> Mike
Lewis Clark - 19 Jun 2005 21:37 GMT
     Here are two ways:

     =COUNTIF(A1:A6,"<15") - COUNTIF(A1:A6, "=0")

     =SUMPRODUCT(--(A1:A6>0),--(A1:A6<15) )

Hope this helps.

> Hello All,
> Using Excel XP.
[quoted text clipped - 18 lines]
>
> Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.