Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Countif on 2 different rows

I have 2 different rows with different values in 6 columns set up as such


Row 1: 110010
Row 2: 502345

I am trying to write a formula to count the instances where row 2 is 0 and
row 1 = 1

So in this instance, row 2 0 in all but the second column (column B); row
1 = 1 in columns A, C and E

Therefore, the total could be 2 b/c both criteria are meant in column A and E

Help?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Countif on 2 different rows

If you have more than one set of criteria to check, its generally best to use
SUMPRODUCT instead. For your example, try this:

=SUMPRODUCT(--(A1:F1=1),--(A2:F20))

HTH,
Elkar


"kd5000" wrote:

I have 2 different rows with different values in 6 columns set up as such


Row 1: 110010
Row 2: 502345

I am trying to write a formula to count the instances where row 2 is 0 and
row 1 = 1

So in this instance, row 2 0 in all but the second column (column B); row
1 = 1 in columns A, C and E

Therefore, the total could be 2 b/c both criteria are meant in column A and E

Help?

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 on 2 different rows kd5000 Excel Discussion (Misc queries) 2 October 26th 07 09:18 PM
COUNTIF in between rows Vasilis Tergen Excel Worksheet Functions 20 January 13th 07 10:22 PM
Countif rows Lauravila Excel Discussion (Misc queries) 2 December 20th 06 04:05 AM
countif() help for multiple rows ob3ron02 Excel Worksheet Functions 0 November 10th 04 06:49 PM
countif() help for multiple rows ob3ron02 Excel Worksheet Functions 2 November 10th 04 06:18 PM


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