COUNTIFS Formula to pull submissions entered on a Weekly Basis (Sun - Sat)
Hello,
I would appreciate anyone who can please help with the formula I have below:
=COUNTIFS({Facility}, "Sumner", {Inspection Date}, >=DATE(2020, 8, 9), {Inspection Date}, <=DATE(2020, 8, 9))
Essentially I want to count the number of submissions or rows I have from a specific location from another sheet from Sunday to Saturday (weekly basis).
Thank you,
Best Answer
-
Your formula should already work, but you have a typo in the 3rd criterion (it is the same criterion as the 2nd, it should be 2020,8,15). If you want to make this more dynamic, you can use the TODAY function to grab the week end and beginnings.
Current Week's Sunday: TODAY() - WEEKDAY(TODAY()) + 1
Current Week's Saturday: TODAY() - WEEKDAY(TODAY()) + 7
Answers
-
Your formula should already work, but you have a typo in the 3rd criterion (it is the same criterion as the 2nd, it should be 2020,8,15). If you want to make this more dynamic, you can use the TODAY function to grab the week end and beginnings.
Current Week's Sunday: TODAY() - WEEKDAY(TODAY()) + 1
Current Week's Saturday: TODAY() - WEEKDAY(TODAY()) + 7
-
Thank you Jason! I totally missed that, but thank you!
I will try the others.
Best,
-
Jason,
Would you know if there is a formula to have this generate on a weekly basis instead of changing the dates manually?
Thanks
-
Definitely! Just use the TODAY and WEEKDAY functions as below (work off the basis that =TODAY() - WEEKDAY(TODAY()) is equal to the Saturday of the last week). This would count the number of Sumner projects for the current week. If you'd want to have more control, you can reference other drop-down cells to choose a facility match (change the blue highlight) or a date cell to change the week you are looking at (yellow highlight, reference any date to count that specific date's week).
=COUNTIFS(Facility:Facility, "Sumner", [Inspection Date]:[Inspection Date], >=(TODAY() - WEEKDAY(TODAY()) + 1), [Inspection Date]:[Inspection Date], <=(TODAY() - WEEKDAY(TODAY()) + 7))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!