Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default best way to count something in one column using criteria in another column

Hi
I would like to know the best way to count the number of cells that
have Pass in one column but only covering those in week 20 in another
column

A B

19 Pass
19 Pass
19 Fail
19 Pass
20 Pass
20 Fail
20 Pass
21 Fail
21 Pass

Thank you very much

Hj
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default best way to count something in one column using criteria in another column

Hi,

Am Wed, 23 May 2012 19:45:24 +0100 schrieb Hankjam:

I would like to know the best way to count the number of cells that
have Pass in one column but only covering those in week 20 in another
column


19 Pass
19 Pass
19 Fail
19 Pass
20 Pass
20 Fail
20 Pass
21 Fail
21 Pass


in versions < 2007:
=SUMPRODUCT(--(A1:A100=20),--(B1:B100="Pass"))
xl2007 or xl2010:
=COUNTIFS(A:A,20,B:B,"Pass")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default best way to count something in one column using criteria in another column

On Wed, 23 May 2012 20:58:13 +0200, Claus Busch
wrote:

=SUMPRODUCT(--(A1:A100=20),--(B1:B100="Pass"))

Hi Claus

Works a treat, many thanks
Hj
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
Count how many criteria in a column match criteria in another colu Charles Stover Excel Discussion (Misc queries) 3 March 6th 09 08:39 PM
Based on Mulipple Criteria acrossed Column count last column LBitler Excel Worksheet Functions 1 February 12th 09 06:58 PM
Count with multiple column criteria Joe M. Excel Discussion (Misc queries) 2 January 14th 08 04:35 PM
How do I count in column A when it meets all criteria in three col dereksmom Excel Worksheet Functions 2 November 9th 06 04:37 PM
Can I count values in column 1 if criteria in column 2 are met confounded office user Excel Worksheet Functions 2 November 9th 04 12:02 PM


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