#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 504
Default autosum

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(E68,E6-8,0)

Can someone please help


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default autosum

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


"Kevin" wrote:

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(E68,E6-8,0)

Can someone please help


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 504
Default autosum

Well that was easy, thanks alot it works great now


"Teethless mama" wrote:

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


"Kevin" wrote:

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(E68,E6-8,0)

Can someone please help


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default autosum

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

"Kevin" wrote in message
...
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(E68,E6-8,0)

Can someone please help




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default autosum

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

"Kevin" wrote in message
...
Well that was easy, thanks alot it works great now


"Teethless mama" wrote:

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


"Kevin" wrote:

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(E68,E6-8,0)

Can someone please help






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 504
Default autosum

Thanks T

works even better now

"T. Valko" wrote:

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

"Kevin" wrote in message
...
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(E68,E6-8,0)

Can someone please help





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default autosum

You're welcome. Thanks for the feedback!

Biff

"Kevin" wrote in message
...
Thanks T

works even better now

"T. Valko" wrote:

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

"Kevin" wrote in message
...
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(E68,E6-8,0)

Can someone please help







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I set up a shortcut key for Autosum? dsapan Excel Worksheet Functions 3 May 13th 10 03:16 PM
How do i protect a worksheet in Excel and still use AutoSum? Jonathan Newman Excel Discussion (Misc queries) 1 July 17th 06 02:12 PM
Autosum returns an incorrect zero value on the selected cells trying hard Excel Worksheet Functions 4 August 25th 05 11:06 AM
Autosum Stuart Perry Excel Discussion (Misc queries) 5 July 19th 05 08:45 PM
autosum problems PAT D 1951 Excel Worksheet Functions 1 November 28th 04 11:17 PM


All times are GMT +1. The time now is 05:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"