Hey Folks,
I'm having a major issue trying to find a sum based on multiple other criteria. Here's an example of what the speadsheet would look like:
<table border="0" cellpadding="0" cellspacing="0" height="121" width="478"><colgroup><col style="mso-width-source:userset;mso-width-alt:5010;width:103pt" width="137"> <col style="width:48pt" span="4" width="64"> </colgroup><tbody><tr style="height:16.5pt" height="22"> <td class="xl65" style="height:16.5pt;width:103pt" height="22" width="137">Date/Time</td> <td class="xl66" style="border-left:none;width:48pt" width="64">Hours</td> <td class="xl66" style="border-left:none;width:48pt" width="64">FRS</td> <td class="xl66" style="border-left:none;width:48pt" width="64">ACM1</td> <td class="xl67" style="border-left:none;width:48pt" width="64">ACM2</td> </tr> <tr style="height:15.75pt" height="21"> <td class="xl68" style="height:15.75pt;border-top:none" height="21">01-Jul-11 3:36 PM</td> <td class="xl64" style="border-top:none;border-left:none">5.9</td> <td class="xl69" style="border-top:none;border-left:none">Bob
</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">02-Jul-11 7:21 PM</td> <td class="xl64" style="border-top:none;border-left:none">3.6</td> <td class="xl69" style="border-top:none;border-left:none">John</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">03-Jul-11 11:00 AM</td> <td class="xl64" style="border-top:none;border-left:none">7.3</td> <td class="xl69" style="border-top:none;border-left:none">Bob</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">04-Jul-11 8:00 AM</td> <td class="xl64" style="border-top:none;border-left:none">5.5</td> <td class="xl69" style="border-top:none;border-left:none">John</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.75pt" height="21"> <td class="xl72" style="height:15.75pt;border-top:none" height="21">06-Jul-11 9:12 AM</td> <td class="xl73" style="border-top:none;border-left:none">5.6</td> <td class="xl74" style="border-top:none;border-left:none">Bob</td> <td class="xl74" style="border-top:none;border-left:none">John</td> <td class="xl75" style="border-top:none;border-left:none"> </td> </tr> </tbody></table>
Here's a criteria list: 1) it needs to evaluate the "Date/Time" column to see if its within 30 days of today's date. 2) It needs to check the FRS and each ACM column for "John". The same name would never repeat twice in the same row (i.e. wouldn't be in the FRS and one of the ACM columns). If the criteria was met it would sum up the total in the "Hours" column for that person.
Now the other catch, and I really have no idea if this has any affect or not (but it shouldn't) is the cell that returns the result is on a different worksheet in the same workbook. Also each month of the year has its own worksheet and because one of the criteria checks within 30 days of today, that means its usually over 2 months aka 2 worksheets. I'm thinking that can just be easily solved with a + and a repeat of the formula with the new worksheet name in it.
This is the equation I've been trying to use with no luck so far just a #VALUE! error:
=SUMPRODUCT(--('July 11'!I15:R41>=(TODAY()-30)),--('July 11'!BJ15:BM41="John"),--('July 11'!I15:R41))
July 11 is obviously the worksheet name and the reference cells are there. Does it matter if they are merged or not?
I'm lost and any help is appreciated.
I'm having a major issue trying to find a sum based on multiple other criteria. Here's an example of what the speadsheet would look like:
<table border="0" cellpadding="0" cellspacing="0" height="121" width="478"><colgroup><col style="mso-width-source:userset;mso-width-alt:5010;width:103pt" width="137"> <col style="width:48pt" span="4" width="64"> </colgroup><tbody><tr style="height:16.5pt" height="22"> <td class="xl65" style="height:16.5pt;width:103pt" height="22" width="137">Date/Time</td> <td class="xl66" style="border-left:none;width:48pt" width="64">Hours</td> <td class="xl66" style="border-left:none;width:48pt" width="64">FRS</td> <td class="xl66" style="border-left:none;width:48pt" width="64">ACM1</td> <td class="xl67" style="border-left:none;width:48pt" width="64">ACM2</td> </tr> <tr style="height:15.75pt" height="21"> <td class="xl68" style="height:15.75pt;border-top:none" height="21">01-Jul-11 3:36 PM</td> <td class="xl64" style="border-top:none;border-left:none">5.9</td> <td class="xl69" style="border-top:none;border-left:none">Bob
</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">02-Jul-11 7:21 PM</td> <td class="xl64" style="border-top:none;border-left:none">3.6</td> <td class="xl69" style="border-top:none;border-left:none">John</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">03-Jul-11 11:00 AM</td> <td class="xl64" style="border-top:none;border-left:none">7.3</td> <td class="xl69" style="border-top:none;border-left:none">Bob</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;border-top:none" height="20">04-Jul-11 8:00 AM</td> <td class="xl64" style="border-top:none;border-left:none">5.5</td> <td class="xl69" style="border-top:none;border-left:none">John</td> <td class="xl70" style="border-top:none;border-left:none"> </td> <td class="xl71" style="border-top:none;border-left:none"> </td> </tr> <tr style="height:15.75pt" height="21"> <td class="xl72" style="height:15.75pt;border-top:none" height="21">06-Jul-11 9:12 AM</td> <td class="xl73" style="border-top:none;border-left:none">5.6</td> <td class="xl74" style="border-top:none;border-left:none">Bob</td> <td class="xl74" style="border-top:none;border-left:none">John</td> <td class="xl75" style="border-top:none;border-left:none"> </td> </tr> </tbody></table>
Here's a criteria list: 1) it needs to evaluate the "Date/Time" column to see if its within 30 days of today's date. 2) It needs to check the FRS and each ACM column for "John". The same name would never repeat twice in the same row (i.e. wouldn't be in the FRS and one of the ACM columns). If the criteria was met it would sum up the total in the "Hours" column for that person.
Now the other catch, and I really have no idea if this has any affect or not (but it shouldn't) is the cell that returns the result is on a different worksheet in the same workbook. Also each month of the year has its own worksheet and because one of the criteria checks within 30 days of today, that means its usually over 2 months aka 2 worksheets. I'm thinking that can just be easily solved with a + and a repeat of the formula with the new worksheet name in it.
This is the equation I've been trying to use with no luck so far just a #VALUE! error:
=SUMPRODUCT(--('July 11'!I15:R41>=(TODAY()-30)),--('July 11'!BJ15:BM41="John"),--('July 11'!I15:R41))
July 11 is obviously the worksheet name and the reference cells are there. Does it matter if they are merged or not?
I'm lost and any help is appreciated.