View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default count entries that equal one criteria if another column meets anot

=SUMPRODUCT(--(A1:A100="Product"),--(B1:B100="Jan"))
I am assuming Jan is text not a formatted date

You can use cell references
=SUMPRODUCT(--(A1:A100=K2),--(B1:B100=L1))
where K1 holds "Product" and L1 hold "Jan" (without quotes, of course)

If this is a big, serious project, this may be the time to learn about pivot
tables
http://www.cpearson.com/excel/pivots.htm
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.contextures.com/xlPivot02.html
http://www.ozgrid.com/Excel/excel-pivot-tables.htm
http://www.techonthenet.com/excel/pivottbls/index.htm
http://www.dicks-blog.com/archives/2...le-parameters/

best wishes
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"ccKennedy" wrote in message
...
hi,
i'd like to use the countif feature but only if another column meets
another
criteria.
Example:
A B
Product Jan
Personnel Feb

so, i want to know how many times "Product" occurred in Jan, how many
times
"Personnel" occurred in Feb, etc.
help?