ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I use a countif function according to two other countif fu. (https://www.excelbanter.com/excel-worksheet-functions/72621-how-do-i-use-countif-function-according-two-other-countif-fu.html)

 Kirsty February 19th 06 05:37 PM

How do I use a countif function according to two other countif fu.

I have two countif formulas and I want to count the number of cells that
agree with both of these. Can anyone help please? I've searched the online
help but can't find anything.
Thanks

 Bob Phillips February 19th 06 05:45 PM

How do I use a countif function according to two other countif fu.

=sumproduct(--(rng1="value1"),--(rng2="value2"))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Kirsty" wrote in message
...
I have two countif formulas and I want to count the number of cells that
agree with both of these. Can anyone help please? I've searched the online
help but can't find anything.
Thanks

 NAVEEN February 20th 06 11:44 AM

How do I use a countif function according to two other countif fu.

Dear Kirsty,

The problem you stated is not clear. Does it mean that you want to include
two conditions in countif functions i.e., consider the example

A B
=================
1 Apple Good
2 Mango Good
4 Orange Good
=================

You want to count the number of Good (Col.B) apples (Col.A).

If this is the problem, you can do it by entering a formula in Col.C as
follows:

=A1&"-"&B1

now type the following formula in Col.D

=countif(\$A\$1:\$B5, "Apple-Good")

Kind regards.

NAVEEN

"Kirsty" wrote:

I have two countif formulas and I want to count the number of cells that
agree with both of these. Can anyone help please? I've searched the online
help but can't find anything.
Thanks

 All times are GMT +1. The time now is 08:32 PM.