Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Countif with two terms

Hi, I would like to count the number of the letter F in column A if column
B=x and column C=y (both terms must be fulfilled.)

I tried countif with no success.

what formula should I use?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Countif with two terms


=sumproduct((a2:a22="f")*(b2:b22="x"))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"FreddieP" wrote in message
...
Hi, I would like to count the number of the letter F in column A if column
B=x and column C=y (both terms must be fulfilled.)

I tried countif with no success.

what formula should I use?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Countif with two terms

Try one of these:

=SUMPRODUCT(--(A2:A20="F"),--(B2:B20="X"),--(C2:C20="Y"))
or...
=SUMPRODUCT(--(A2:A20="F")*(B2:B20="X")*(C2:C20="Y"))

Alternatively, if "X" and "Y" refer to values in other cells,
perhaps something like this:
=SUMPRODUCT(--(A2:A20="F"),--(B2:B20=D1),--(C2:C20=E1))

Adjust range references to suit your situation.

Does that help?
Post back if you have more questions.

Regards,

Ron
Microsoft MVP - Excel

"FreddieP" wrote in message
...
Hi, I would like to count the number of the letter F in column A if column
B=x and column C=y (both terms must be fulfilled.)

I tried countif with no success.

what formula should I use?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Countif with two terms

=SUMPRODUCT(--(A1:A100="F"),--(B1:B100="x"),--(C1:C100="y"))
--
David Biddulph

"FreddieP" wrote in message
...
Hi, I would like to count the number of the letter F in column A if column
B=x and column C=y (both terms must be fulfilled.)

I tried countif with no success.

what formula should I use?



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
sumif with two different terms FreddieP Excel Discussion (Misc queries) 1 May 20th 08 10:39 AM
i don;t know the correct terms but need help please! novice Excel Discussion (Misc queries) 5 March 25th 08 02:23 PM
Error Terms Michael Gudyka Excel Discussion (Misc queries) 5 September 28th 07 07:19 PM
how do i look up terms in excel? Joshua Howard Excel Discussion (Misc queries) 2 October 26th 06 04:37 PM
Terms customer is using-What do they mean? Jugglertwo Excel Discussion (Misc queries) 3 April 27th 06 05:48 PM


All times are GMT +1. The time now is 12:51 PM.

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"