Hello,
I cannot seem to get the total sum of a row from January to November based on the cell value.
Cell C28 is where i have my attempt but it doesnt seem to work. I have tried Sumproduct as well and get similar errors. Not sure what i am doing wrong. Can someone please help me out here?
Thanks!
I cannot seem to get the total sum of a row from January to November based on the cell value.
Cell C28 is where i have my attempt but it doesnt seem to work. I have tried Sumproduct as well and get similar errors. Not sure what i am doing wrong. Can someone please help me out here?
Thanks!
Cell Formulas | ||
---|---|---|
Range | Formula | |
C4:N15 | C4 | =IF(SUM(IF(ISNUMBER(MASTER!$E:$E),IF((MONTH(MASTER!$E:$E)='sales by month'!C$2)*(YEAR(MASTER!$E:$E)='sales by month'!$B4),MASTER!$G:$G)))=0,"",(SUM(IF(ISNUMBER(MASTER!$E:$E),IF((MONTH(MASTER!$E:$E)='sales by month'!C$2)*(YEAR(MASTER!$E:$E)='sales by month'!$B4),MASTER!$G:$G))))) |
O4:O15 | O4 | =IF(SUM(C4:N4)=0,"",SUM(C4:N4)) |
P4:P15 | P4 | =B4 |
B5:B15 | B5 | =B4+1 |
C17:O17 | C17 | =AVERAGE(C4:C15) |
P17 | P17 | =+B17 |
C19:O19 | C19 | =AVERAGE(OFFSET(C3,COUNT(C4:C15),0,-$A$19)) |
P19 | P19 | =CONCATENATE(A19, " ",B19) |
B20 | B20 | =CONCATENATE("Vs"," ",A19," ",B19) |
C20 | C20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,2,FALSE)-C19,"") |
D20 | D20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,3,FALSE)-D19,"") |
E20 | E20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,4,FALSE)-E19,"") |
F20 | F20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,5,FALSE)-F19,"") |
G20 | G20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,6,FALSE)-G19,"") |
H20 | H20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,7,FALSE)-H19,"") |
I20 | I20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,8,FALSE)-I19,"") |
J20 | J20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,9,FALSE)-J19,"") |
K20 | K20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,10,FALSE)-K19,"") |
L20 | L20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,11,FALSE)-L19,"") |
M20 | M20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,12,FALSE)-M19,"") |
N20 | N20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,13,FALSE)-N19,"") |
O20 | O20 | =IFERROR(VLOOKUP($A$20,$B$4:$O$15,14,FALSE)-O19,"") |
P20 | P20 | =CONCATENATE("Vs ",A20) |
C23 | C23 | =VLOOKUP($A$23,$B$4:$O$15,2,FALSE)-VLOOKUP($B$23,$B$4:$O$15,2,FALSE) |
D23 | D23 | =VLOOKUP($A$23,$B$4:$O$15,3,FALSE)-VLOOKUP($B$23,$B$4:$O$15,3,FALSE) |
E23 | E23 | =VLOOKUP($A$23,$B$4:$O$15,4,FALSE)-VLOOKUP($B$23,$B$4:$O$15,4,FALSE) |
F23 | F23 | =VLOOKUP($A$23,$B$4:$O$15,5,FALSE)-VLOOKUP($B$23,$B$4:$O$15,5,FALSE) |
G23 | G23 | =VLOOKUP($A$23,$B$4:$O$15,6,FALSE)-VLOOKUP($B$23,$B$4:$O$15,6,FALSE) |
H23 | H23 | =VLOOKUP($A$23,$B$4:$O$15,7,FALSE)-VLOOKUP($B$23,$B$4:$O$15,7,FALSE) |
I23 | I23 | =VLOOKUP($A$23,$B$4:$O$15,8,FALSE)-VLOOKUP($B$23,$B$4:$O$15,8,FALSE) |
J23 | J23 | =VLOOKUP($A$23,$B$4:$O$15,9,FALSE)-VLOOKUP($B$23,$B$4:$O$15,9,FALSE) |
K23 | K23 | =VLOOKUP($A$23,$B$4:$O$15,10,FALSE)-VLOOKUP($B$23,$B$4:$O$15,10,FALSE) |
L23 | L23 | =VLOOKUP($A$23,$B$4:$O$15,11,FALSE)-VLOOKUP($B$23,$B$4:$O$15,11,FALSE) |
M23 | M23 | =VLOOKUP($A$23,$B$4:$O$15,12,FALSE)-VLOOKUP($B$23,$B$4:$O$15,12,FALSE) |
N23 | N23 | =VLOOKUP($A$23,$B$4:$O$15,13,FALSE)-VLOOKUP($B$23,$B$4:$O$15,13,FALSE) |
O23 | O23 | =VLOOKUP($A$23,$B$4:$O$15,14,FALSE)-VLOOKUP($B$23,$B$4:$O$15,14,FALSE) |
B27:B37 | B27 | =SEQUENCE(Z3-1,,B4,1) |
C28 | C28 | =IF(B28="","",VLOOKUP(B28-1,B4:O15,13,FALSE)+SUMIFS(C4:O15,B4:B15,B28)) |
M29:M32 | M29 | =+J8+K8+L8+M8+N8 |
K27 | K27 | =+SUM(C6:M6)+N7 |
K28:K32 | K28 | =+N8+SUM(C7:M7) |
K33 | K33 | =AVERAGE(K27:K32) |
J36:J37 | J36 | =SUM(J6:N6) |
Dynamic array formulas. |