Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2006

Tip: Looking for answers? Try searching our database.

I want to get the sum of a total number of fields on a weekly basis.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bartlegend - 23 May 2006 15:43 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.