numbers numbers
New Member
- Joined
- Aug 18, 2008
- Messages
- 3
I am looking for some help on a formula.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
purpose time keeping;<o></o>
User enters hours worked, (column B) program tracks hours worked in the last day, 30 days, 42 days and 90 days.<o></o>
<o> </o>
If the user has 5 days off in a row (column Q, zeros when column B has 5 days with zero hours) then the days tracked should reset to just that day and then start accumulating again.<o></o>
<o> </o>
current formula
=IF(Q32=0,SUM(B4:B33),B33)<o></o>
<o> </o>
problem
The formula that I have, works for the day in question (resetting first day back after five days off, to only the hours worked that day and not an accumulative). <o></o>
However it is the subsequent days that the problem occurs, because the formula still totals the previous 30 days, not taking into account that the count has been reset. <o></o>
<o> </o>
Question
I understand that I need to add something extra, but I just can’t figure it out, any help would be great, and very much appreciated.<o></o>
<o> </o>
<o> </o>
purpose time keeping;<o></o>
User enters hours worked, (column B) program tracks hours worked in the last day, 30 days, 42 days and 90 days.<o></o>
<o> </o>
If the user has 5 days off in a row (column Q, zeros when column B has 5 days with zero hours) then the days tracked should reset to just that day and then start accumulating again.<o></o>
<o> </o>
current formula
=IF(Q32=0,SUM(B4:B33),B33)<o></o>
<o> </o>
problem
The formula that I have, works for the day in question (resetting first day back after five days off, to only the hours worked that day and not an accumulative). <o></o>
However it is the subsequent days that the problem occurs, because the formula still totals the previous 30 days, not taking into account that the count has been reset. <o></o>
<o> </o>
Question
I understand that I need to add something extra, but I just can’t figure it out, any help would be great, and very much appreciated.<o></o>
<o> </o>