#1   Report Post  
Lady Layla
 
Posts: n/a
Default Time Sheets

I have looked at various Time calculation examples but have not seen this really
addressed

Is there a way to have a time sheet where people do not need to enter time using
military time or using AM or PM in the actual entry.

We have a business that is a normal 9 - 5 business so there is no overnight or
really late night work hours.

If start time is in C2 , lunch out in D2, lunch in in E2, time out in F2.

Normal time calculation is (F2-E2+D2-C2)*24


Am trying to use (IF(F2E2,F2-E2,(E2+12)-E2)+If(D2C2,D2-C2,(D2+12)-C2))*24
but am not getting correct answer


(Trying to add 12 hours to Lunch out or Time out if beginning times are in AM
and ending times are in PM)

Thanks in advance for the help!


  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

=(IF(F2E2,F2-E2,(F2+12)-E2)+IF(D2C2,D2-C2,(D2+12)-C2))

If you don't want military time, don't multiply by 24. Further, a little
typo; F2 vs. E2
If you want to use the result as real Excel time, divide by 24.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Lady Layla" wrote in message
...
I have looked at various Time calculation examples but have not seen this
really
addressed

Is there a way to have a time sheet where people do not need to enter time
using
military time or using AM or PM in the actual entry.

We have a business that is a normal 9 - 5 business so there is no
overnight or
really late night work hours.

If start time is in C2 , lunch out in D2, lunch in in E2, time out in F2.

Normal time calculation is (F2-E2+D2-C2)*24


Am trying to use
(IF(F2E2,F2-E2,(E2+12)-E2)+If(D2C2,D2-C2,(D2+12)-C2))*24
but am not getting correct answer


(Trying to add 12 hours to Lunch out or Time out if beginning times are in
AM
and ending times are in PM)

Thanks in advance for the 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
Time Sheets Helen Black Excel Worksheet Functions 0 March 21st 05 09:32 AM
Time Sheets Helen Black Excel Worksheet Functions 1 March 19th 05 01:41 PM
Time Sheets Helen Black Excel Worksheet Functions 0 March 18th 05 09:34 AM
Time Sheets Helen Black Excel Worksheet Functions 1 March 17th 05 04:14 PM
set or reset the print range for several sheets at a time? Mestrella31 Excel Discussion (Misc queries) 2 January 10th 05 09:07 PM


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

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

About Us

"It's about Microsoft Excel"