Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Calculating Time Worked in Timesheet

I have to maintain a timesheet and I need a function to do the math for me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm 9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of lunch to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where 9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9 1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Calculating Time Worked in Timesheet

Will any times span past midnight?

Based on your sample:

=(lunch_out - time_in + time_out - lunch_in) * 24

=(B2-A2+D2-C2)*24

Format as GENERAL or NUMBER

Biff

"Studebaker" wrote in message
...
I have to maintain a timesheet and I need a function to do the math for me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out
Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm
9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of lunch
to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where
9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9
1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Calculating Time Worked in Timesheet

=((D2-A2)-(C2-B2))*24


"Studebaker" wrote:

I have to maintain a timesheet and I need a function to do the math for me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm 9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of lunch to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where 9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9 1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Calculating Time Worked in Timesheet

No, no times span past midnight.

I tried your formula and Teethless mama's and it worked on some rows but not
on others.

Ex: Time In, Out for Lunch, In from Lunch, Time Out = Total Hours Worked

1) 9:00am, 1:45, 2:45, 6:00pm = I got -4.00 with your formula but the answer
should be 8.00 hours worked.

2) 9:00, 1:15, 2:30, 5:45 = -4.50 with your formula but the answer should be
7.50 hours worked.

3) 9:00, 1:00, 2:00, 6:30 = -3.50 with your formula but the answer should be
8.50 hours worked.

Can you or somebody help?

Thanks!

"T. Valko" wrote:

Will any times span past midnight?

Based on your sample:

=(lunch_out - time_in + time_out - lunch_in) * 24

=(B2-A2+D2-C2)*24

Format as GENERAL or NUMBER

Biff

"Studebaker" wrote in message
...
I have to maintain a timesheet and I need a function to do the math for me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out
Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm
9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of lunch
to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where
9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9
1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Calculating Time Worked in Timesheet

Take a look at this screencap:

http://img19.imageshack.us/img19/7108/timevl0.jpg

If you don't explicitly include the AM/PM the time defaults to AM.

Biff

"Studebaker" wrote in message
...
No, no times span past midnight.

I tried your formula and Teethless mama's and it worked on some rows but
not
on others.

Ex: Time In, Out for Lunch, In from Lunch, Time Out = Total Hours Worked

1) 9:00am, 1:45, 2:45, 6:00pm = I got -4.00 with your formula but the
answer
should be 8.00 hours worked.

2) 9:00, 1:15, 2:30, 5:45 = -4.50 with your formula but the answer should
be
7.50 hours worked.

3) 9:00, 1:00, 2:00, 6:30 = -3.50 with your formula but the answer should
be
8.50 hours worked.

Can you or somebody help?

Thanks!

"T. Valko" wrote:

Will any times span past midnight?

Based on your sample:

=(lunch_out - time_in + time_out - lunch_in) * 24

=(B2-A2+D2-C2)*24

Format as GENERAL or NUMBER

Biff

"Studebaker" wrote in message
...
I have to maintain a timesheet and I need a function to do the math for
me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out
Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm
9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of
lunch
to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where
9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9
1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display
in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Calculating Time Worked in Timesheet

Thank you!

My timesheet was all in AM. I also didn't realize I needed my Time in, Time
out, etc. in h:mm format but my total hours worked in number format. I
corrected it and it works great!
Thank you so much for your help!

Studebaker

"T. Valko" wrote:

Take a look at this screencap:

http://img19.imageshack.us/img19/7108/timevl0.jpg

If you don't explicitly include the AM/PM the time defaults to AM.

Biff

"Studebaker" wrote in message
...
No, no times span past midnight.

I tried your formula and Teethless mama's and it worked on some rows but
not
on others.

Ex: Time In, Out for Lunch, In from Lunch, Time Out = Total Hours Worked

1) 9:00am, 1:45, 2:45, 6:00pm = I got -4.00 with your formula but the
answer
should be 8.00 hours worked.

2) 9:00, 1:15, 2:30, 5:45 = -4.50 with your formula but the answer should
be
7.50 hours worked.

3) 9:00, 1:00, 2:00, 6:30 = -3.50 with your formula but the answer should
be
8.50 hours worked.

Can you or somebody help?

Thanks!

"T. Valko" wrote:

Will any times span past midnight?

Based on your sample:

=(lunch_out - time_in + time_out - lunch_in) * 24

=(B2-A2+D2-C2)*24

Format as GENERAL or NUMBER

Biff

"Studebaker" wrote in message
...
I have to maintain a timesheet and I need a function to do the math for
me.
My spreadsheet looks like this basically:

A B C D
E
Time in Out for Lunch In from Lunch Time Out
Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm
9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of
lunch
to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100 where
9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will = 9
1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to display
in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your help.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Calculating Time Worked in Timesheet

You're welcome. Thanks for the feedback!

BTW, if you enter the times in 24 hour format then you don't need to include
the AM/PM.

13:00 = 1:00 PM
18:00 = 6:00 PM
6:00 = 6:00 AM

Biff

"Studebaker" wrote in message
...
Thank you!

My timesheet was all in AM. I also didn't realize I needed my Time in,
Time
out, etc. in h:mm format but my total hours worked in number format. I
corrected it and it works great!
Thank you so much for your help!

Studebaker

"T. Valko" wrote:

Take a look at this screencap:

http://img19.imageshack.us/img19/7108/timevl0.jpg

If you don't explicitly include the AM/PM the time defaults to AM.

Biff

"Studebaker" wrote in message
...
No, no times span past midnight.

I tried your formula and Teethless mama's and it worked on some rows
but
not
on others.

Ex: Time In, Out for Lunch, In from Lunch, Time Out = Total Hours
Worked

1) 9:00am, 1:45, 2:45, 6:00pm = I got -4.00 with your formula but the
answer
should be 8.00 hours worked.

2) 9:00, 1:15, 2:30, 5:45 = -4.50 with your formula but the answer
should
be
7.50 hours worked.

3) 9:00, 1:00, 2:00, 6:30 = -3.50 with your formula but the answer
should
be
8.50 hours worked.

Can you or somebody help?

Thanks!

"T. Valko" wrote:

Will any times span past midnight?

Based on your sample:

=(lunch_out - time_in + time_out - lunch_in) * 24

=(B2-A2+D2-C2)*24

Format as GENERAL or NUMBER

Biff

"Studebaker" wrote in message
...
I have to maintain a timesheet and I need a function to do the math
for
me.
My spreadsheet looks like this basically:

A B C
D
E
Time in Out for Lunch In from Lunch Time Out
Total
Hours Worked

7:00am 11:00am 12:00pm 5:30pm
9.50

What formula can I put in column E that would:
a) show my 10 1/2 hours of work (from 7 to 5:30) minus my 1 hour of
lunch
to
equal 9 1/2 hours worked total?

b) show the Total Hours Worked in column E on a scale of 0 to 100
where
9.5
will = 9 1/2 hours worked (aka 9 hours and 30 minutes) or 9.25 will
= 9
1/4
hours worked (aka 9 hours and 15 minutes)? I don't want 9:30 to
display
in
column E where 9:30 means 9 hours and 30 minutes worked.

Thank you for your 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
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Calculating time worked using 100ths of an hour, from 1 day into n maintchief New Users to Excel 4 October 27th 05 11:48 PM
Calculating Pay based on time of day hrs worked scarlett1 Excel Worksheet Functions 4 July 6th 05 11:45 PM
calculating weeks worked klillestol Excel Worksheet Functions 2 October 30th 04 04:26 AM


All times are GMT +1. The time now is 12:50 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"