View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
david mcritchie david mcritchie is offline
external usenet poster
 
Posts: 691
Default What is the formulae to write a work timecard in Excel


Payroll student ?

B2: 06:30
C2:12:00
D2: 13:00
E2: 17:00
F2: =c2-b2+(b2c2)+e2-d2+(d2e2)

The use of D2E2 is a comparison it will add 24 hours (1 day) if the
ending time is less than the starting time.

So if a shift began on one day and ended on the next day, your formulas
would work.

More information on Date and Time in
http://www.mvps.org/dmcritchie/excel/datetime.htm
http://www.cpearson.com/excel/datetime.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Billious0" wrote in message ...
I am a payroll student and want to write a work timeclock ( clocking in and
out card) what is the formulae I need i.e

In 06:30 Out 12:00 In 13:00 Out 17:00