Calculating time with a lookback

  • Follow


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

0
Reply Utf 12/9/2009 10:33:14 PM

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
> 
0
Reply Utf 12/9/2009 10:33:23 PM


Luke,
Thanks for the quick response, I will try it and get back to this post.
Doug


0
Reply Utf 12/10/2009 3:15:03 AM

2 Replies
317 Views

(page loaded in 0.115 seconds)

Similiar Articles:












7/22/2012 10:07:40 AM


Reply: