Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paul Sheppard
 
Posts: n/a
Default COUNTIF Multiple Conditions


How do I use countif with multiple conditions

Column B has dates
Column C has Various data or Blank

I need to count the number of non blanks in column C if column A is one
of 3 dates

I have tried the array formula below, but am getting the wrong answer

{=SUM((Sheet1!$B$2:$B$100=A6)*(Sheet1!$B$2:$B$100= A7)*(Sheet1!$B$2:$B$100=A8)*(Sheet1!$C$2:$C$100<" "))}

A6, A7 and A8 are the cells witth the dates in


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=468131

  #2   Report Post  
Rowan
 
Posts: n/a
Default

=SUM(((Sheet1!$B$2:$B$100=A6)+(Sheet1!$B$2:$B$100= A7)+(Sheet1!$B$2:$B$100=A8))*(Sheet1!$C$2:$C$100< ""))

array entered with Ctrl+Shift+Enter

or entered normally

=SUMPRODUCT((($B$2:$B$100=A6)+($B$2:$B$100=A7)+($B $2:$B$100=A8))*($C$2:$C$100<""))

Hope this helps
Rowan

Paul Sheppard wrote:
How do I use countif with multiple conditions

Column B has dates
Column C has Various data or Blank

I need to count the number of non blanks in column C if column A is one
of 3 dates

I have tried the array formula below, but am getting the wrong answer

{=SUM((Sheet1!$B$2:$B$100=A6)*(Sheet1!$B$2:$B$100= A7)*(Sheet1!$B$2:$B$100=A8)*(Sheet1!$C$2:$C$100<" "))}

A6, A7 and A8 are the cells witth the dates in


  #4   Report Post  
Domenic
 
Posts: n/a
Default

Maybe...

=SUMPRODUCT(--(ISNUMBER(MATCH(Sheet1!$B$2:$B$100,A6:A8,0))),--(Sheet1!$C$
2:$C$100<""))

Hope this helps!

In article
,
Paul Sheppard
wrote:

How do I use countif with multiple conditions

Column B has dates
Column C has Various data or Blank

I need to count the number of non blanks in column C if column A is one
of 3 dates

I have tried the array formula below, but am getting the wrong answer

{=SUM((Sheet1!$B$2:$B$100=A6)*(Sheet1!$B$2:$B$100= A7)*(Sheet1!$B$2:$B$100=A8)*
(Sheet1!$C$2:$C$100<""))}

A6, A7 and A8 are the cells witth the dates in

  #5   Report Post  
Posted to microsoft.public.excel.misc
cchen212
 
Posts: n/a
Default COUNTIF Multiple Conditions


Hello

I want to count everything in Column K that is either greater than or =
to 75% AND less than or equal to 125%. Is there a way to do this?

This is the formula i used and it works but it seems a bit long
winded.

thanks

=COUNT(K3:K29)-COUNTIF(K3:K29,"<75%")-COUNTIF(K3:K29,"125%")


--
cchen212
------------------------------------------------------------------------
cchen212's Profile: http://www.excelforum.com/member.php...o&userid=29951
View this thread: http://www.excelforum.com/showthread...hreadid=468131



  #6   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default COUNTIF Multiple Conditions

=COUNTIF(K3:K29,"=0.75")-COUNTIF(K3:K29,"1.25")

or

=SUMPRODUCT(--(K3:K29=0.75),--(K3:K29<=1.25))

will both retrun the same count


--

Regards,

Peo Sjoblom


"cchen212" wrote in
message ...

Hello

I want to count everything in Column K that is either greater than or =
to 75% AND less than or equal to 125%. Is there a way to do this?

This is the formula i used and it works but it seems a bit long
winded.

thanks

=COUNT(K3:K29)-COUNTIF(K3:K29,"<75%")-COUNTIF(K3:K29,"125%")


--
cchen212
------------------------------------------------------------------------
cchen212's Profile:

http://www.excelforum.com/member.php...o&userid=29951
View this thread: http://www.excelforum.com/showthread...hreadid=468131



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
Multiple conditions on a countif Mr Mike Excel Worksheet Functions 5 January 24th 06 01:52 PM
multiple conditions in COUNTIF (Excel 2000) Johbou Excel Discussion (Misc queries) 1 August 20th 05 10:54 AM
COUNTIF Statement with Multiple Conditions in Different Ranges KJA Excel Worksheet Functions 2 April 26th 05 05:14 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
COUNTIF using multiple conditions? Muse of Fire New Users to Excel 3 December 29th 04 08:49 PM


All times are GMT +1. The time now is 12:58 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"