Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
brendalw
 
Posts: n/a
Default excel command that counts conditions met in 2 columns?

is there a form of countif that increments only if conditions are met in two
(or more) columns? e.g., countif(colA = 1 and colB = 2)
  #2   Report Post  
 
Posts: n/a
Default

Hi

You need SUMPRODUCT. Have a look here for some guidance and post back if you
need some more help.
http://www.contextures.com/xlFunctio...tml#SumProduct

Hope this helps.

Andy.

"brendalw" wrote in message
...
is there a form of countif that increments only if conditions are met in
two
(or more) columns? e.g., countif(colA = 1 and colB = 2)



  #3   Report Post  
John
 
Posts: n/a
Default

Use SUMPRODUCT
EG:
=SUMPRODUCT((A1:A10=1)*(B1:10=2))


"brendalw" wrote:

is there a form of countif that increments only if conditions are met in two
(or more) columns? e.g., countif(colA = 1 and colB = 2)

  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Some options...

[1]

=SUMPRODUCT(($A$2:$A$100=1)+0,($B$2:$B$100=2)+0)

[2]

=SUM(IF($A$2:$A$100=1,IF($B$2:$B$100=2,1)))

followed by control+shift+enter.

[3]

C2, copied down:

=A2&"#"&B2

=COUNTIF($C$2:$C4100,"="&1&"#"&2)

[4] Construct a pivot table.

brendalw wrote:
is there a form of countif that increments only if conditions are met in two
(or more) columns? e.g., countif(colA = 1 and colB = 2)

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
Opening two separate instances of Excel Ron Bishop Excel Discussion (Misc queries) 2 August 4th 05 05:30 PM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Alpha & Numeric Counts in Excel Programmer wanna be Excel Discussion (Misc queries) 3 April 5th 05 11:12 AM
How do I sum a range after 2 different conditions are met (2 colu. Holly B. Excel Discussion (Misc queries) 3 December 21st 04 03:47 PM


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