Formula to Count Rows Meeting Multiple Criteria

powelly04

New Member
Joined
Jan 28, 2015
Messages
14
Hi, Need help with a formula been googleing all day and tried many different formulas but getting no where so now looking for assistance Below is test data for the purpose of this example.

I need to count all rows that have complete install and app. all 3 criteria need to be variable tho and be sleeted from a drop down list on my report page. the formula page will then do the magic and then the report page will format the data nicely in rank.

Below is test data for the purpose of an example.

Formula i am using is: =SUMPRODUCT((COUNTIF(INDIRECT("'"&Report!$a$2&"'!$G:$G"), "=complete")),(COUNTIF(INDIRECT("'"&Report!$a$2&"'!$C:$C"), Report!$a2)))

Sheet 1

[TABLE="class: cms_table, width: 500, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Hostname[/TD]
[TD]App[/TD]
[TD]JobType[/TD]
[TD]ReturnCode[/TD]
[TD]Comment[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]01:00:00[/TD]
[TD]ComputerA[/TD]
[TD]X[/TD]
[TD]Install[/TD]
[TD]0[/TD]
[TD]COMPLETE[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]03:00:00[/TD]
[TD]ComputerB[/TD]
[TD]X[/TD]
[TD]Install[/TD]
[TD]0[/TD]
[TD]COMPLETE[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]09:00:00[/TD]
[TD]ComputerC[/TD]
[TD]Y[/TD]
[TD]Extract[/TD]
[TD]128[/TD]
[TD]Unzip


[/TD]
[/TR]
</tbody>[/TABLE]















Sheet 2

[TABLE="class: cms_table, width: 500, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Hostname[/TD]
[TD]App[/TD]
[TD]JobType[/TD]
[TD]ReturnCode[/TD]
[TD]Comment[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]01:00:00[/TD]
[TD]ComputerA[/TD]
[TD]X[/TD]
[TD]Install[/TD]
[TD]0[/TD]
[TD]COMPLETE[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]01:05:00[/TD]
[TD]ComputerA[/TD]
[TD]X[/TD]
[TD]Install[/TD]
[TD]0[/TD]
[TD]COMPLETE[/TD]
[/TR]
[TR]
[TD]2014-03-07[/TD]
[TD]01:00:00[/TD]
[TD]ComputerB[/TD]
[TD]Y[/TD]
[TD]Extract[/TD]
[TD]0[/TD]
[TD]COMPLETE

[/TD]
[/TR]
</tbody>[/TABLE]















Formulas

A
=SUMPRODUCT((COUNTIF(INDIRECT("'"&Report!$a$2&"'!$G:$G"), "=complete")),(COUNTIF(INDIRECT("'"&Report!$a$2&"'!$C:$C"), Report!$a2)))


Report

A
Sheet 1 "this is a drop down box to allow the user of the report to select which sheet to look
Comment "again drop down list of COMPLETE / NOT STARTED / IN PROCESS"

Results
 
on my formula page. > I will then use another formula to rank them in order. > And then on my report it will then arrange the rank and display them in order.

I can do the 2nd 2 parts with ease just cant get the numbers im after to then be able to sort them.

Try to answer the question literally. In which sheet and which cell of that sheet must the formula go?
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
formula page

We call Sheet1 a sheet. The name of this sheet is Sheet1.

We often say: The formula must be invoked in A2 of Sheet1, meaning the first instance of the formula in question is typed in A2.

So my question is: In which cell of which sheet must the formula invoked?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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