Use SUMIFs and ISDATE to sum based on dates within the past week
Hello,
I'm attempting to use SUMIFs to sum one column based on whether another column has dates within the past 7 days. However, my current formula is unpareseable. All help is appreciated!
=SUMIFS([No if Sites]:[No of Sites], [Payments Closed Won Date]:[Payments Closed Won Date], ISDATE(TODAY()-7))
I have seen posted replies about using WEEKNUMBER and WEEKDAY, but I couldn't figure out how to apply those functions to this formula. Apologies if I've missed an answer to this specific question in another post.
Thank you,
Kim
Best Answer
-
Your criteria is actually going to end up being
@cell>= TODAY(-7)
But the error itself is because it looks like you have a typo in that first range.
[No if Sites]:[No of Sites]
First column reference has "if" whereas second column reference has "of".
Answers
-
Your criteria is actually going to end up being
@cell>= TODAY(-7)
But the error itself is because it looks like you have a typo in that first range.
[No if Sites]:[No of Sites]
First column reference has "if" whereas second column reference has "of".
-
Many thanks, Paul. Great catch on the typo and thank you for the criteria. I now have the following formula accurately report the sites.
=SUMIFS([No of Sites]:[No of Sites], [Payments Closed Won Date]:[Payments Closed Won Date], @cell >= TODAY(-7))
-
Great! Happy to help! 👍️
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!