gary_parker
New Member
- Joined
- Jul 24, 2005
- Messages
- 48
Hi
I'm trying to do a formula that produces a sum of all of the products within a specific range.
The sumproduct picks up the time (i have added a column that changes the time format (column A)) however, I cannot get the sumproduct to work out that between 9am and 9:45am there is a total of 56, because of the date, it sits at 0....
Can anyone advise? My formula is =SUMPRODUCT(($A$3:$A$46=$B49)*($C$1:$DJ$1=C$48)*$C$3:$DJ$46) where $B49 is the lookup for that particular time range in above mentioned column A and C$48 is the date specified
Gary
I'm trying to do a formula that produces a sum of all of the products within a specific range.
Code:
<table><tbody><tr><td>B </td><td>C</td><td>D</td><td>E</td><td>F</td></tr> <tr><td> </td><td>03/10/2011</td><td>03/10/2011</td><td>03/10/2011</td><td>03/10/2011</td></tr> <tr><td> </td><td>Break (P)</td><td>Lunch Unpaid</td><td>Phone</td><td>Retention</td></tr> <tr><td>09:00:00 </td><td>0</td><td>0</td><td>11</td><td>3</td></tr> <tr><td>09:15:00 </td><td>1</td><td>0</td><td>10</td><td>3</td></tr> <tr><td>09:30:00 </td><td>0</td><td>0</td><td>11</td><td>3</td></tr> <tr><td>09:45:00 </td><td>0</td><td>0</td><td>11</td><td>3</td></tr> </tbody></table>
The sumproduct picks up the time (i have added a column that changes the time format (column A)) however, I cannot get the sumproduct to work out that between 9am and 9:45am there is a total of 56, because of the date, it sits at 0....
Can anyone advise? My formula is =SUMPRODUCT(($A$3:$A$46=$B49)*($C$1:$DJ$1=C$48)*$C$3:$DJ$46) where $B49 is the lookup for that particular time range in above mentioned column A and C$48 is the date specified
Gary