Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default CountIf with 2 criteria possible?

Microsoft 2003 - I am trying to do a count of the number of cells that match
my criteria by using the countif command. However, I need it to look at 2
separate criteria items before a match is made. It needs to look in column
B:B first to make sure the criteria is there and then needs to look in column
C:C to make sure the value for that cell is not equal to 0. If those
criteria both match, I want it to bring back the total number of cells this
is true for.
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default CountIf with 2 criteria possible?

try
=sumproduct(--(B1;B100=criteria1),--(C1:C100<0))
the --( changes the logical true false to numeric 1 0
the arrays must be the same size and cannot refer to a full column for pre
2007

"duketter" wrote:

Microsoft 2003 - I am trying to do a count of the number of cells that match
my criteria by using the countif command. However, I need it to look at 2
separate criteria items before a match is made. It needs to look in column
B:B first to make sure the criteria is there and then needs to look in column
C:C to make sure the value for that cell is not equal to 0. If those
criteria both match, I want it to bring back the total number of cells this
is true for.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
countif criteria Chris Morley Excel Worksheet Functions 6 June 17th 06 01:27 PM
Two criteria for CountIf? DB_Bill Excel Worksheet Functions 6 June 1st 06 04:33 PM
Countif With Criteria JR573PUTT Excel Worksheet Functions 1 February 15th 06 07:00 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


All times are GMT +1. The time now is 11:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"