Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PhilH
 
Posts: n/a
Default How can you use count with an array formula similar to using sum

I understand how to a mutiple condition sum using an array formula following
the format that is created by the conditional simif wizard. Can count use
multiple conditions in the same way, and if so how ?
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Yes, you can have multiple criteria included within the Countif() function,
using it in conjunction with the Sum() function.

Count the items in Column A, where their color, in Column B, is *either*
Red, or Blue, or White:

=SUM(COUNTIF(B:B,{"Red","White","Blue"}))

This is *not* an array formula!
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"PhilH" wrote in message
...
I understand how to a mutiple condition sum using an array formula

following
the format that is created by the conditional simif wizard. Can count use
multiple conditions in the same way, and if so how ?


  #3   Report Post  
PhilH
 
Posts: n/a
Default

Thanks, but what if you have a third column that contains names and you only
want to count items that relate to either "Red" or "Blue" for column B and
"Dave " or "Steve" for column C.

"PhilH" wrote:

I understand how to a mutiple condition sum using an array formula following
the format that is created by the conditional simif wizard. Can count use
multiple conditions in the same way, and if so how ?

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUMPRODUCT(--((B2:B200="Blue")+(B2:B200="Red")0),--((C2:C200="Dave")+(C2:C200="Steve")0))

--
Regards,

Peo Sjoblom

(No private emails please)


"PhilH" wrote in message
...
Thanks, but what if you have a third column that contains names and you
only
want to count items that relate to either "Red" or "Blue" for column B and
"Dave " or "Steve" for column C.

"PhilH" wrote:

I understand how to a mutiple condition sum using an array formula
following
the format that is created by the conditional simif wizard. Can count use
multiple conditions in the same way, and if so how ?


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
Array Formula, noncontigous range Werner Rohrmoser Excel Worksheet Functions 1 June 22nd 05 12:11 PM
Array formula help scott Excel Discussion (Misc queries) 3 January 27th 05 09:37 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
Count If Formula for multiple conditions?? How To?? LPrain Excel Worksheet Functions 1 December 6th 04 09:18 PM
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM


All times are GMT +1. The time now is 10:01 PM.

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

About Us

"It's about Microsoft Excel"