SUMIF between dates
Hi Community! I'm just trying total amount of "Booked" from Mon to Sat for the last couple weeks. Any help would be appreciated. Thank you...
Answers
-
Hi @tgattsh,
To calculate the sum of "Booked" from Monday to Saturday for the past two weeks, please first add a helper column named [Day of the Week]. In this column, use a formula to determine the day of the week for each date. and use the following formula in this column and convert it to column format formula:
=IFERROR(WEEKDAY(Date@row), "")
then in the sum column use the following formula it will calculate the sum of Booked from Mon to Sat for the last couple weeks:
=IFERROR(SUMIFS(Booked:Booked, [Day Of the week]:[Day Of the week], AND(@cell <> 1, @cell <> 7), Date:Date, OR(@cell <= TODAY(), @cell >= TODAY(-14))), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
@Bassam Khalil I really appreciate your response! The suggestion didn't work but I did find a workaround. using,
It's not pretty, but it worked.
-
Hi @tgattsh ,
It's good news that you found a solution by yourself. Regarding my formula, I tested it and it worked fine. I think there may be something wrong with how it was applied in your sheet. I'm not sure if you created the helper column [Day of the Week].
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!