Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
john327
 
Posts: n/a
Default Timeclock Calculation

I would like to set up a table in excel that allows me to enter, for example:
A time punched in (8:00 AM), time punched out (12:00 Noon) (for lunch) a time
punched back in (1:00 PM), a time punched out (5:00 PM).
I would like a final cell to calculate total work hours as 8 hours
worked for the day.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Timeclock Calculation

Hi

A1:E1 - "WorkdayStart", "LunchStart", "LunchEnd", "WorkdayEnd"
Format columns A:D as time (like Custom "hh:mm")
Into cell E2 enter the formula
=IF(OR(A2="";D2=""),"",(D2-A2)-(C2-B2))
or, in case workday stretches over midnight
=IF(OR(A2="",D2=""),"",(D2-A2+(D2<A2))-(C2-B2+(C2<B2)))
and copy it down



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"john327" wrote in message
...
I would like to set up a table in excel that allows me to enter, for
example:
A time punched in (8:00 AM), time punched out (12:00 Noon) (for lunch) a
time
punched back in (1:00 PM), a time punched out (5:00 PM).
I would like a final cell to calculate total work hours as 8 hours
worked for the day.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bill Kuunders
 
Posts: n/a
Default Timeclock Calculation

enter in E2

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


A2 = 08:00
B2= 12:00
C2= 01:00 p.m
D2= 05:00 p.m.

--
Greetings from New Zealand
Bill K

"john327" wrote in message
...
I would like to set up a table in excel that allows me to enter, for
example:
A time punched in (8:00 AM), time punched out (12:00 Noon) (for lunch) a
time
punched back in (1:00 PM), a time punched out (5:00 PM).
I would like a final cell to calculate total work hours as 8 hours
worked for the day.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default Timeclock Calculation

See www.cpearson.com/excel/overtime.htm for examples and a
downloadable workbook.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"john327" wrote in message
...
I would like to set up a table in excel that allows me to enter,
for example:
A time punched in (8:00 AM), time punched out (12:00 Noon) (for
lunch) a time
punched back in (1:00 PM), a time punched out (5:00 PM).
I would like a final cell to calculate total work hours as
8 hours
worked for the day.



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
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a check box to accept a calculation Joejoethecrackman Excel Discussion (Misc queries) 5 March 22nd 05 08:47 PM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


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