Forum Discussion
GMinch
Aug 25, 2023Copper Contributor
SUMIF Multiple Cells Across Multiple Worksheets
I have a very simple spreadsheet where I am trying to total the number of hours spent on a project for a given week. I am using a SUMIF function to attempt to add hours for a particular job together,...
Patrick2788
Aug 25, 2023Silver Contributor
SUMIF does not accept 3D references.
If you have 365, you could stack the data with VSTACK then sum.
=LET(
stack, VSTACK(Stack3D),
project, TAKE(stack, , 1),
hours, TAKE(stack, , -1),
Total, LAMBDA(ID, SUM(FILTER(hours, project = ID, 0))),
BYROW(ProjectID, Total)
)