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
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