Using Countif or other with two conditions

maic15

Active Member
Joined
Nov 17, 2004
Messages
313
Below, is a countif() that I'm using to summarize my data on "Summary 2" worksheet.

=COUNTIF('MA, SY and PL Tracking'!$A$10:$A$146,"G")

I need to add another condition to this statement, but do not know how to join two Countif() statements.

Here is the other statement:

=COUNTIF('MA, SY and PL Tracking'!S10:S145,"X")
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Below, is a countif() that I'm using to summarize my data on "Summary 2" worksheet.

=COUNTIF('MA, SY and PL Tracking'!$A$10:$A$146,"G")

I need to add another condition to this statement, but do not know how to join two Countif() statements.

Here is the other statement:

=COUNTIF('MA, SY and PL Tracking'!S10:S145,"X")

You omitted to stipulate the way you need them to "join". Likely...

=SUMPRODUCT(--('MA, SY and PL Tracking'!$A$10:$A$146,"G"),--('MA, SY and PL Tracking'!S10:S146,"X"))

At Edit:

=SUMPRODUCT(--('MA, SY and PL Tracking'!$A$10:$A$146="G"),--('MA, SY and PL Tracking'!S10:S146="X"))
 
Upvote 0
Good evening maic15

Download and install my add-in via the link below. Once installed, select Ultimate > Formulae > Multiple SumIf Generator. This will enable you to build a formula using SumProduct that will count the cells based on criteria of your choosing.

HTH

DominicB
 
Upvote 0
I solved the problem. If the ranges contain no data, then #value will occur.

Thanks!

This tools is very slick!
 
Upvote 0
I solved the problem. If the ranges contain no data, then #value will occur.

Thanks!

This tools is very slick!

=SUMPRODUCT(--('MA, SY and PL Tracking'!$A$10:$A$146="G"),--('MA, SY and PL Tracking'!S10:S146="X"))
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,702
Members
453,315
Latest member
funktgf

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top