How to Calculate Week Number and total work done within a week
Answers
-
Hi Kanishk,
Without knowing the structure of your sheet and how you have structured the backend to manage the numbers — I can say that you would want to probably start with a SUMIFS formula. The SUMIFS formula basically says that you want to calculate the hours column if the date that the hour is being tracked is today or in the past up to 6 days for the calculation of hours worked for the current week.
For the previous week, you would simply have the same formula concept but with some minor changes; the date range of the hours calculation would need to occur on the 7th day to the 13th.
This would allow for a side by side comparison of current week to previous week. Your formulas could look something like the below:
Current Week:
=SUMIFS([Hours Column]:[Hours Column], [Date Column]:[Date Column], <= TODAY(), [Date Column]:[Date Column], >= TODAY() - 6)
Previous Week:
=SUMIFS(
[Hours Column]:[Hours Column],
[Date Column]:[Date Column], <= TODAY() - 7,
[Date Column]:[Date Column], >= TODAY() - 13
)Please let us know if this helped you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.6K Get Help
- 472 Global Discussions
- 200 Use Cases
- 513 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!