Count Dates but by week if possible - Weekly trends
I've tried a count if, count and countif function.
Trying to Count how many in a date range. Sunday through Saturday as my base week. How many times in week 5/9 to 5/14 was a request put in.
Would I need to count each date? Like count if date @row 2021,5,9? In the screenshot above the answer would be 4. But I would need a separate formula for all 52 weeks in a year? Formula for a daily count?
Just trying to show weekly trends....
Answers
-
Hi @None RBT
You could do one of two things:
=COUNTIF(WEEKNUMBER([date requested]:[date requested],WEEKNUMBER(TODAY()))
The above formula counts the number of items that have a date in the current week. Alternately, you could put a specific week number, or enter a date in a different field and do WEEKNUMBER([column]@row).
You could also do:
=COUNTIFS([date requested]:[date requested], >=date(2021,5,9),[date requested]:[date requested],<=date(2021,5,15))
This counts between the two specific dates.
Hope this helps!
Best,
Heather
-
Tried both and getting an unparseable error. ?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!