![]() |
Calculating time with a lookback
I need some help, trying to make a spreadsheet that will help me with my job
to keep legal. I can only work no more than 8 hours in a 24 hour period. This is a rolling 24 hour period. At the same time, I can only work no more than 30 hours in a month. This also is a rolling month. And also at the same time I can only work no more than 1000 hours in a year. Again this is also a rolling year. I do not know how to write the formulas for this, anybody have any ideas. Again this is for my own personal use to remain legal with the feds. Thanks for any input in advance, Doug |
Calculating time with a lookback
Let's say in column A you have a date & time start stamp (inputted correctly
as numbers). In column B, you have the amount of time you worked Hours worked in last 24 hours: =SUMIF(A:A,B:B,"="&NOW()-1) Hours worked in last 30 hours: =SUMIF(A:A,B:B,"="&NOW()-30/24) Hours worked in last 365 days: =SUMIF(A:A,B:B,"="&NOW()-365) Using all 3 of these formulas should give you a good idea of how much time you can still work. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "v1rt8" wrote: I need some help, trying to make a spreadsheet that will help me with my job to keep legal. I can only work no more than 8 hours in a 24 hour period. This is a rolling 24 hour period. At the same time, I can only work no more than 30 hours in a month. This also is a rolling month. And also at the same time I can only work no more than 1000 hours in a year. Again this is also a rolling year. I do not know how to write the formulas for this, anybody have any ideas. Again this is for my own personal use to remain legal with the feds. Thanks for any input in advance, Doug |
Calculating time with a lookback
Luke,
Thanks for the quick response, I will try it and get back to this post. Doug |
All times are GMT +1. The time now is 07:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com