1

I'm trying to sum multiple rows using column headers as criteria but keep coming up blank. In this table, the range that needs to be summed is D2:F4 but ultimately I'll be summing arbitrary, contiguous date ranges.

All help greatly appreciated. Thanks! (Sorry no rep yet to post pics)

To return data from the current week (based on Rory's solution):

=SUMPRODUCT((B1:1>=(TODAY()-WEEKDAY(TODAY(),2)+1))*(B1:1<=(TODAY()-WEEKDAY(TODAY(),2)+5))*(B2:4))

2
  • Use SUMPRODUCT - eg =SUMPRODUCT((B1:Z1>=DATE(2021,9,1))*(B1:Z1<=DATE(2021,9,30))*(B2:Z4)) Commented Sep 28, 2021 at 11:04
  • It's beautiful. Thanks... If only my little brain could understand how multiplication leads to a sum!!! Put your answer below so I can accept it please? Commented Sep 28, 2021 at 11:31

1 Answer 1

1

You can use SUMPRODUCT for this - eg:

=SUMPRODUCT((B1:Z1>=DATE(2021,9,1))*(B1:Z1<=DATE(2021,9,30))*(B2:Z4))

to sum data for September of this year.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Rory. Added another formula to the orig question that returns the sum for the current week.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.