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 cross-sheet 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 cross-sheet 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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!