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 / Worksheet Functions / November 2006

Tip: Looking for answers? Try searching our database.

autosum

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin - 24 Nov 2006 23:07 GMT
I am trying to make a monthly time sheet.

This is the layout

     A                  B                 C            D              E    
        F             G      

Date    Time Worked    Lunch    Total     Reg     O/T
    Start     End    Enter Time    Hours    Hours    Hours
24-Oct-06    6:30 AM    3:00 PM    0.5    8.0    8.0    0.0
25-Oct-06    6:30 AM    4:15 PM        9.8    8.0    1.8
26-Oct-06    6:30 AM    5:45 PM    0.5    10.8    8.0    2.8
27-Oct-06    6:30 AM    3:45 PM    0.5    8.8    8.0    0.8

Columns D, E, F, G and there totals are formatted to number with one decimal
point.

At the end of the month it automatically adds up the different columns.

If you enter 6:30 AM – 4:15 PM, in column E it rounds it from 9.75 to 9.8
hours which is what I want it to do. The problem is at the end when you tally
up all the hours in the different columns by using the auto sum button it is
not adding up what it sees in column E, it is adding up the exact times from
columns B and C.

eg. Even though it says 9.8 hours in column E, it is adding 9.75

The formula that I have used for Column E is

=IF(B6="stat",8,(C6-B6)*24)-D6

Column F

=MIN(E6,8)

Column G

=IF(E6>8,E6-8,0)

Can someone please help
Teethless mama - 24 Nov 2006 23:29 GMT
=IF(B6="stat",8,ROUNDUP((C6-B6)*24-D6,1))

> I am trying to make a monthly time sheet.
>
[quoted text clipped - 36 lines]
>
> Can someone please help
Kevin - 24 Nov 2006 23:36 GMT
Well that was easy, thanks alot it works great now

> =IF(B6="stat",8,ROUNDUP((C6-B6)*24-D6,1))
>
[quoted text clipped - 38 lines]
> >
> > Can someone please help
T. Valko - 24 Nov 2006 23:54 GMT
Are you sure you want the -D6 within the IF function? It changes the way
your result is calculated.

Are you sure you want Roundup? 9.71 gets rounded to 9.8

Biff

> Well that was easy, thanks alot it works great now
>
[quoted text clipped - 46 lines]
>> >
>> > Can someone please help
T. Valko - 24 Nov 2006 23:39 GMT
Instead of formatting to show 1 decinal place you need to round WITHIN the
formula itself:

=IF(B6="stat",8,(C6-B6)*24)-D6
Returns 9.75 (with D6 being empty)

=IF(B6="stat",8,ROUND((C6-B6)*24,1))-D6
Returns 9.8 (with D6 being empty)

Biff

>I am trying to make a monthly time sheet.
>
[quoted text clipped - 40 lines]
>
> Can someone please help
Kevin - 25 Nov 2006 17:42 GMT
Thanks T

works even better now

> Instead of formatting to show 1 decinal place you need to round WITHIN the
> formula itself:
[quoted text clipped - 51 lines]
> >
> > Can someone please help
T. Valko - 25 Nov 2006 18:51 GMT
You're welcome. Thanks for the feedback!

Biff

> Thanks T
>
[quoted text clipped - 58 lines]
>> >
>> > Can someone please help
 
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.