PC Review


Reply
Thread Tools Rate Thread

Counting cells with multiple criteria

 
 
Charlie510
Guest
Posts: n/a
 
      26th Aug 2008
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
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      26th Aug 2008

try this where a1 has your date formatted the same

=sumproduct((ai2:ai22=1234)*(am2:am22=a1)*(aj2:aj22=-1))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Charlie510" <(E-Mail Removed)> wrote in message
news:2D7A8680-D7B9-424F-89CB-(E-Mail Removed)...
> 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


 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      26th Aug 2008
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 <Charlie...@discussions.microsoft.com>
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


 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      26th Aug 2008
> 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


So the year can be *any* year?

=SUMPRODUCT(--(AJ1:AJ10=-1),--(AM1:AM10<>""),--(MONTH(AM1:AM10)=n))

Where n = the month number: Jan = 1 , Dec = 12

--
Biff
Microsoft Excel MVP


"Charlie510" <(E-Mail Removed)> wrote in message
news:2D7A8680-D7B9-424F-89CB-(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting cells using multiple criteria andrew.curley Microsoft Excel Worksheet Functions 4 12th Jun 2006 04:41 PM
Counting multiple cells using a criteria =?Utf-8?B?Sm9obg==?= Microsoft Excel Misc 1 14th Jun 2005 04:51 PM
Counting Cells with multiple criteria.One criteria supporting wild =?Utf-8?B?QXpoYXIgQXJhaW4=?= Microsoft Excel Worksheet Functions 1 12th Jan 2005 08:33 AM
Counting Cells with multiple criteria.One criteria supporting wild =?Utf-8?B?QXpoYXIgU2FsZWVt?= Microsoft Excel Worksheet Functions 0 12th Jan 2005 07:51 AM
Counting cells using multiple criteria Atchy Microsoft Excel Charting 2 7th May 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.