Date range formula
Hello,
How would i write a formula when looking for data between a certain period i.e. I want to find the number of tasks marked 'complete' between March 1 through March 31? Thanks.
Answers
-
Hello,
You will want to make a helper column called month that has the following formula:
=MONTH(Date@row)
Then you can use this formula in your count column:
=COUNTIFS([Month]:[Month], =3, [Task]:[Task], ="complete")
That should give you the count you want.
If you would like a more robust formula, you could do this:
=IF(DAY(Date@row) =1, =COUNTIFS([Month]:[Month], =Month@row, [Task]:[Task], ="complete"),"")
This formula only works if you have a beginning day of 1 for each month in your data. It checks if the date is the first day, then if it is, it will count all tasks that are complete and within that month.
Hope this helps.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 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!