View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Counting cells with multiple criteria

Try this:

=SUMPRODUCT((MONTH(AM1:AM100)=1)*(YEAR(AM1:AM100)= 2008)*(AJ1:AJ100=-1))

I've assumed you have 100 rows of data - adjust the ranges if you have
more. This checks for Month 1 (January) and for this year, so you can
adjust these if necessary (or put them in a separate cell and use the
cell reference). I've also assumed that you have the number -1 in
column AJ, rather than the text value "-1".

Hope this helps.

Pete

On Aug 26, 4:54*pm, Charlie510
wrote:
I'm trying to count the number of cells that meet criteria in multiple columns:

Column AI contains a job number
Column AJ contains "blank", "0", or "-1"
Column AM contains the mm/dd/yyyy the job was finished

I need a COUNT of the cells in AJ that = "-1" and for which the job was
finished in a certain month