H Hunter Childress Member May 4, 2023 #1 Please see the attached example. On the output tab, I am tying to sum by type (column) and by month(row). I can't get it to work. Attachments Example.xlsx Example.xlsx 63.8 KB · Views: 19
Please see the attached example. On the output tab, I am tying to sum by type (column) and by month(row). I can't get it to work.
V vletm Excel Ninja May 4, 2023 #2 Hunter Childress eg to Output's cell B2 =SUMIF(Sheet1!$A$3:$A$71,Output!$A2,Sheet1!B$3:B$71) and copy down & right as need.
Hunter Childress eg to Output's cell B2 =SUMIF(Sheet1!$A$3:$A$71,Output!$A2,Sheet1!B$3:B$71) and copy down & right as need.
p45cal Well-Known Member May 5, 2023 #3 Try in B2: Code: =SUM(FILTER(FILTER(Sheet1!$B$3:$HW$71,Sheet1!$B$1:$HW$1=B$1),Sheet1!$A$3:$A$71=$A2)) copy down/across. (Power Query could do this too.)
Try in B2: Code: =SUM(FILTER(FILTER(Sheet1!$B$3:$HW$71,Sheet1!$B$1:$HW$1=B$1),Sheet1!$A$3:$A$71=$A2)) copy down/across. (Power Query could do this too.)
H Hunter Childress Member May 5, 2023 #4 @p45cal - this is great, thanks for teaching me a new formula combo. This worked perfectly.
Excel Wizard Active Member May 5, 2023 #5 Please try =MMULT(MMULT(N(TOROW(Sheet1!A3:A71)=A2:A4),Sheet1!B3:HW71),N(TOCOL(Sheet1!B1:HW1)=B1:K1)) Attachments Example.xlsx Example.xlsx 64.9 KB · Views: 21