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 / July 2007

Tip: Looking for answers? Try searching our database.

why doesn't countif function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dindigul - 12 Jul 2007 19:18 GMT
I typed:
=countif(AND(C:C="BSM11",D:D>0,2))
why I keep getting messages like, you have not entered sufficient items or
error in formula?
THanks
Rick Rothstein (MVP - VB) - 12 Jul 2007 19:31 GMT
>I typed:
> =countif(AND(C:C="BSM11",D:D>0,2))
> why I keep getting messages like, you have not entered sufficient
> items or error in formula?

COUNTIF is looking for two arguments... AND returns a single value... a
Boolean (either TRUE or FALSE).

Since you have two different conditions to meet, try using two COUNTIF
functions (one for each condition) and add them together.

Rick
Bernie Deitrick - 12 Jul 2007 19:41 GMT
=SUMPRODUCT((C1:C100="BSM11")*(D1:D100>0))

Not sure why you'rthrowing the 2 in there as well....

HTH,
Bernie
MS Excel MVP

>I typed:
> =countif(AND(C:C="BSM11",D:D>0,2))
> why I keep getting messages like, you have not entered sufficient items or error in formula?
> THanks
Harlan Grove - 12 Jul 2007 22:27 GMT
"dindigul" <padhy...@gmail.com> wrote...
>I typed:
>=countif(AND(C:C="BSM11",D:D>0,2))
>why I keep getting messages like, you have not entered sufficient
>items or error in formula?

Because COUNTIF has specific syntax that you're failing to use. It
takes two and only two mandatory arguments, and the first one must be
a reference to a single-area range in an open workbook.

FWIW, if you're running Excel 2007, you could use

=COUNTIFS(C:C,"=BSM11",D:D,">0.2")
 
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.