Sumifs based on quarter and year
We're creating a master project sheet. we'd like to be able to break out totals by yearly quarters. For example 1st quarter 2023. This is the formula I have working for 1st quarter total.
=SUMIFS(Fee:Fee, [Preferred Date]:[Preferred Date], INT((MONTH(@cell) + 2) / 3) = 1)
When I add a year criterion it fails - I imagine I have the second set of criterion not correct syntax-wise. Any help would be appreciated:
=SUMIFS(Fee:Fee, [Preferred Date]:[Preferred Date], INT((MONTH(@cell) + 2) / 3) = 1, YEAR(@cell) = 2023)
Answers
-
Anyone have a quick fix? Thanks
-
You would need to use the AND function to use two sets of criteria for the same range.
=SUMIFS(Fee:Fee, [Preferred Date]:[Preferred Date], AND(INT((MONTH(@cell) + 2) / 3) = 1, YEAR(@cell) = 2023))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!