Count If Multiple Tabs and Multiple Criteria

teacup1787

New Member
Joined
Apr 28, 2012
Messages
1
I have two tabs. Sheet 5 and Sheet 6. Sheet 5 contains Statements for specific Businesses and Sheet 6 is a summary Spreadsheet.

I am using the following code in the summary sheet.

=SUMPRODUCT(COUNTIF(A2, INDIRECT("'"&"Sheet 5"&"'!C2:C12")))

this counts all the statements for a business. So for example Ebay = 4.

But I only want it to count a statement if it has a status of Active. So Ebay should = 2.

I am using Excel 2010, I am hoping that the code above can be extended to include the IF Statement Active part which is missing.

http://www.2shared.com/file/1y_Nz4ng/sample_1.html

Thanks,
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=SUMPRODUCT(COUNTIF(A2, INDIRECT("'"&"Sheet 5"&"'!C2:C12")),--('Sheet 5'!B2:B12="Active"))
 
Upvote 0
Hi and welcome,

Try this

=COUNTIFS('Sheet 5'!$C:$C,A2,'Sheet 5'!$B:$B,"Active")

M.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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