Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg Diamond
 
Posts: n/a
Default countif two variables in two different columns

I have column b and column c, I want to count if b=4 and c=1 but if b=4 and
c=2 I don't want it to count it. Can anyone tell me how this would be done?
  #3   Report Post  
Daniel CHEN
 
Posts: n/a
Default

Use the following array formula (end with Ctrl+Shift+Ebter):

=COUNT(IF(((Sheet3!$B$12:$B$19)=4)*((Sheet3!$C$12: $C$19)=1),Sheet3!$B$12:$B$19))

===== * ===== * ===== * =====
Daniel CHEN


www.Geocities.com/UDQServices
Free Data Processing Add-in<

===== * ===== * ===== * =====

"Greg Diamond" <Greg wrote in message
...
I have column b and column c, I want to count if b=4 and c=1 but if b=4 and
c=2 I don't want it to count it. Can anyone tell me how this would be
done?



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
analysing data from alternate columns using the countif function Juniper Excel Discussion (Misc queries) 3 April 28th 05 04:12 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
want to count in two columns; countif (colA=x AND colB=y)? Heather Murch Excel Worksheet Functions 1 February 17th 05 03:47 PM
How do I perform a "Countif" function for Two Columns? Syed Ali Zubair Excel Worksheet Functions 2 February 8th 05 08:46 AM
Countif function with variables SMANDA Excel Worksheet Functions 0 February 7th 05 10:46 PM


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