I have a scheduling worksheet that tracks weekly time. I have a formula that determines the cost associated with time off for a resource within a week on the schedule:
=(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
I would like to create one formula that will sum all of these weekly time off calculations - spanning from column C through column BK - into one cell BL7 without having to type out a formula that looks like this:
=(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
+
(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!D$3))*8*Estimate!D7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!D$3))*8*Estimate!D7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
+ . . .
(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!BK$3))*8*Estimate!BK7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!BK$3))*8*Estimate!BK7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
I have highlighted the range spans in bold red above that I would like to consolidate into a single formula.
=(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
I would like to create one formula that will sum all of these weekly time off calculations - spanning from column C through column BK - into one cell BL7 without having to type out a formula that looks like this:
=(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!C$3))*8*Estimate!C7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
+
(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!D$3))*8*Estimate!D7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!D$3))*8*Estimate!D7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
+ . . .
(SUMPRODUCT((Time_Off!A:A=Estimate!B7)*(Time_Off!D:D=Estimate!BK$3))*8*Estimate!BK7+SUMPRODUCT((Time_Off!A:A=VLOOKUP(B7,Resources!$A$1:$G$5,4,0))*(Time_Off!D:D=Estimate!BK$3))*8*Estimate!BK7)*VLOOKUP(B7,RESOURCE_TABLE,7,0)*VLOOKUP(B7,RESOURCE_TABLE,6,0)
I have highlighted the range spans in bold red above that I would like to consolidate into a single formula.