Sum Ifs in a date range
Trying to calculate the sum of Range 4 only in between the dates below. I'm going to be calculating by quarter, so if there is a better formula for Q1, Q2, etc., please let me know.
=SUMIFS({Construction Range 4}, {Construction Range 5}, "Macy", {Construction Range 3}, >=DATE(2024, 1, 1), {Construction Range 3}, <=DATE(2024, 3, 31)))
Thank you!
Best Answer

Hi @aecross
You can use a SUMIFS formula in a structure like this.
SUMIFS(Value:Value, Date:Date, INT(MONTH(@cell) / 4) + 1 = 1, Date:Date, YEAR(@cell) = "2024")
The " INT(MONTH(@cell) / 4) + 1" corresponds to the quarter number.
The formula uses range references like Value:Value as the formulas are in the Sheet Summary fields, but you can use your crosssheet reference like {Construction Range 4} instead.
You can add additional conditions after the "2024" such as "{Construction Range 5}, "Macy".
Answers

Hi @aecross
You can use a SUMIFS formula in a structure like this.
SUMIFS(Value:Value, Date:Date, INT(MONTH(@cell) / 4) + 1 = 1, Date:Date, YEAR(@cell) = "2024")
The " INT(MONTH(@cell) / 4) + 1" corresponds to the quarter number.
The formula uses range references like Value:Value as the formulas are in the Sheet Summary fields, but you can use your crosssheet reference like {Construction Range 4} instead.
You can add additional conditions after the "2024" such as "{Construction Range 5}, "Macy".

Thank you, @jmyzk_cloudsmart_jp! This looks to be working!

Happy to help!😁, @aecross.
Help Article Resources
Categories
Check out the Formula Handbook template!