I have a form that states in 1 row a total number of hours a person
worked on a day. Above this row i have a row where i place the date of
the certain day this person worked these hours( with TODAY()).
example:
Date: 21-5-2006 23-5-2006 25-5-2006
hours worked daily: 3 , 5 , 4,
WHat i want is that iwant to generate the total number of hours a
person worked weekly.
I want to generate this from the dates.
In short i want excell to look at these dates (for instance:
21-5-2006, 23-5-2006, 25-5-2006. ANd take these dates beginning
from monday to calculate a week and than add the numbers that i
place next to the hours worked a day row and add them up getting
an hours worked a week total on the bottom.
Total number of hours worked this week: (if 21-5-2006 is monday
than this number should be: 12)
And i want these number to change every week when a new week is
beginning.
Can anyone point me in the right direction to work this out ?

Signature
bartlegend
Bob Phillips - 23 May 2006 15:59 GMT
Try this formula
=SUMPRODUCT(--($B1:$M1>=TODAY()-WEEKDAY(TODAY())+2),--($B1:$M1<TODAY()-WEEKD
AY(TODAY())+9),B2:M2)

Signature
HTH
Bob Phillips
(remove xxx from email address if mailing direct)
> I have a form that states in 1 row a total number of hours a person
> worked on a day. Above this row i have a row where i place the date of
[quoted text clipped - 21 lines]
>
> Can anyone point me in the right direction to work this out ?
colofnature - 23 May 2006 16:03 GMT
If your dates are in row 1, and hours worked are in row 2, put this in
B3
=IF(WEEKDAY(B1,2)<WEEKDAY(A1,2),B2,A3+B2)
and copy it along to the end of the row. This will create a running
total for each week.

Signature
colofnature
Ikaabod - 23 May 2006 16:07 GMT
You can use a variation on this:
=IF(WEEKDAY(A1,2)=1,IF(B1-A1<7,"A1 is Monday and B1 is same week","A1
is Monday but B1 not same week"),"A1 is not Monday")
bartlegend Wrote:
> I have a form that states in 1 row a total number of hours a person
> worked on a day. Above this row i have a row where i place the date of
[quoted text clipped - 21 lines]
>
> Can anyone point me in the right direction to work this out ?

Signature
Ikaabod