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 / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Counting items in one column based on criteria in another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kmc103 - 15 May 2008 19:04 GMT
I'm trying to count the number of rows in a column which meet criteria
identified in another column.  I'm creating a payroll template where one
column identifies whether the position is full-time or part-time.  In my
first month of payroll I want to be able to count the number payroll amounts
which are classified as full-time.  I also want to ignore any zeroes.  Any
help would be greatly appreciated.  In using Windows 2003
T. Valko - 15 May 2008 19:15 GMT
*Maybe* this....

=SUMPRODUCT(--(A1:A100="full-time"),--(B1:B100>0))

Signature

Biff
Microsoft Excel MVP

> I'm trying to count the number of rows in a column which meet criteria
> identified in another column.  I'm creating a payroll template where one
[quoted text clipped - 3 lines]
> which are classified as full-time.  I also want to ignore any zeroes.  Any
> help would be greatly appreciated.  In using Windows 2003
kmc103 - 15 May 2008 19:45 GMT
Unfortunately that didn't work.  I tried the formula and it gave me a zero
value.  Also, I'm looking to count the # of cells which match the criteria.  
I think sumproduct would give me the sum.  Thanks - I appreciate the response

> *Maybe* this....
>
[quoted text clipped - 7 lines]
> > which are classified as full-time.  I also want to ignore any zeroes.  Any
> > help would be greatly appreciated.  In using Windows 2003
David Biddulph - 15 May 2008 20:02 GMT
If that formula gave a zero result it means that you have no rows in which
column A ="full-time" and column B>0.  If you have any rows which meet both
those criteria, that formula will count them.
--
David Biddulph

> Unfortunately that didn't work.  I tried the formula and it gave me a zero
> value.  Also, I'm looking to count the # of cells which match the
[quoted text clipped - 16 lines]
>> > Any
>> > help would be greatly appreciated.  In using Windows 2003
kmc103 - 15 May 2008 21:17 GMT
It does work - I was missing the dashes in the formula.  Thanks to both of
you for your help!

> If that formula gave a zero result it means that you have no rows in which
> column A ="full-time" and column B>0.  If you have any rows which meet both
[quoted text clipped - 22 lines]
> >> > Any
> >> > help would be greatly appreciated.  In using Windows 2003
 
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.