Ok, I have tried this on my own and the sum if array I am using appears to be counting unique numbers, which I don't want in this case. Here is a sample of the data:
<table class="MsoNormalTable" style="width: 304.5pt; border: 1pt solid windowtext;" border="1" cellpadding="0" cellspacing="0" width="406"> <tbody><tr style="height: 15pt;"> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64">
</td> <td style="width: 56pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="75"> [FONT="]D[/FONT]
</td> <td style="width: 56pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="75"> [FONT="]E[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]F[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]Q[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]T[/FONT]
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Date Completed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Due Date[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Asset Seqnum[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]PM Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Completed[/FONT]
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Failed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Failed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> </td> </tr> </tbody> </table>
I need to know the number of Assets Seqnum with date between 1/1/2011 (A1) and 12/31/2011 (A2) where Completed is TRUE and PM Passed is "Passed". If the asset is counted twice, that is ok. We are wanting to capture that information. I also intend to get a Failed count as well, but I assume I can replace the Passed with Failed.
The current code is only counting the data once and doesn't appear to be working:
Thanks!
<table class="MsoNormalTable" style="width: 304.5pt; border: 1pt solid windowtext;" border="1" cellpadding="0" cellspacing="0" width="406"> <tbody><tr style="height: 15pt;"> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64">
</td> <td style="width: 56pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="75"> [FONT="]D[/FONT]
</td> <td style="width: 56pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="75"> [FONT="]E[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]F[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]Q[/FONT]
</td> <td style="width: 48pt; border: 1pt solid windowtext; padding: 0in; height: 15pt;" width="64"> [FONT="]T[/FONT]
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]1[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]2[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Due Date[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Asset Seqnum[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]PM Passed[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;"> [FONT="]Completed[/FONT]
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]3[/FONT]
[FONT="]02/15/2011[/FONT]
[FONT="]03/16/2011[/FONT]
[FONT="]200692[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]4[/FONT]
[FONT="]02/15/2011[/FONT]
[FONT="]03/16/2011[/FONT]
[FONT="]200665[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]5[/FONT]
[FONT="]02/16/2011[/FONT]
[FONT="]01/20/2011[/FONT]
[FONT="]200513[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]6[/FONT]
[FONT="]02/16/2011[/FONT]
[FONT="]01/20/2011[/FONT]
[FONT="]200514[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]7[/FONT]
[FONT="]02/16/2011[/FONT]
[FONT="]01/20/2011[/FONT]
[FONT="]200515[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]8[/FONT]
[FONT="]02/16/2011[/FONT]
[FONT="]01/20/2011[/FONT]
[FONT="]200516[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]9[/FONT]
[FONT="]02/17/2011[/FONT]
[FONT="]09/16/2011[/FONT]
[FONT="]200728[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]10[/FONT]
[FONT="]06/14/2011[/FONT]
[FONT="]09/17/2011[/FONT]
[FONT="]200692[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]11[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]10/26/2010[/FONT]
[FONT="]200474[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]12[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]10/26/2010[/FONT]
[FONT="]200475[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]13[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]10/26/2010[/FONT]
[FONT="]200472[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]14[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]10/26/2010[/FONT]
[FONT="]200473[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]15[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]10/26/2010[/FONT]
[FONT="]200476[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]16[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]11/24/2010[/FONT]
[FONT="]201019[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]17[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]11/24/2010[/FONT]
[FONT="]201016[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]18[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]11/24/2010[/FONT]
[FONT="]200500[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]FALSE[/FONT]
[FONT="]19[/FONT]
[FONT="]03/02/2012[/FONT]
[FONT="]11/24/2010[/FONT]
[FONT="]201022[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
[FONT="]20[/FONT]
[FONT="]01/02/2010[/FONT]
[FONT="]11/24/2010[/FONT]
[FONT="]201017[/FONT]
</td> <td style="border: 1pt solid windowtext; padding: 0in; height: 15pt;">
[FONT="]TRUE[/FONT]
I need to know the number of Assets Seqnum with date between 1/1/2011 (A1) and 12/31/2011 (A2) where Completed is TRUE and PM Passed is "Passed". If the asset is counted twice, that is ok. We are wanting to capture that information. I also intend to get a Failed count as well, but I assume I can replace the Passed with Failed.
The current code is only counting the data once and doesn't appear to be working:
Code:
=SUM(IF((BF_PM_PASSED="Passed")*(BF_PM_COMPLETED=TRUE)*(BF_COMPLETED_DATE<=($J$3))*(BF_COMPLETED_DATE>=($H$3)),1,0)) +CSE
Thanks!