Formula for total number of hours used in the last 28 days
I am struggling with coming up the formula for a metric sheet that I will use on my teams dashboard. I am looking to find out how many hours were used for a project in the last 28 days using the "Date worked", and "Total Hours worked" columns of my sheet. I have been trying to use the =SUMIF but can't seem to get it right.
Attached is a screenshot of the sheet I am trying to pull the info from.
Answers
-
The attachment didn't load, but you should be able to use SUMIF for this. It would look something like:
=SUMIF([Date worked]:[Date worked], >= TODAY(-28), [Total Hours worked]:[Total Hours worked])
Where the first range is the range being evaluated, the second parameter is checking to see if each cell meets that criteria, and the third parameter is the range you want to sum.
-
That worked perfectly. Thank you for the assistance.
-
No problem. Glad it worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.5K Get Help
- 367 Global Discussions
- 202 Industry Talk
- 432 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 447 Show & Tell
- 29 Member Spotlight
- 1 SmartStories
- 285 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!