#1   Report Post  
Posted to microsoft.public.excel.misc
NMHemp
 
Posts: n/a
Default Creating Time Sheet

I'm stuck. I'm trying to create a time sheet where if I enter time in decimal
format, it will display in hour format automatically. I also want it to
calculate the difference between the times (including lunch breaks). So, for
example, if I start at 9:45 am, I can input 9.75 (to be displayed as 9:45 am)
in A2, 17.00 in b2 (to be displayed as 5:00 pm), and a one-hour break in c2.
D2 would then calculate the total. I've experimented with different formulas,
but seem to run into a circular reference error. Any suggestions?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Creating Time Sheet

Time is measured as a fraction of a day so 12 noon is .5 days
to convert hours in decimal to time divide by 24
to convert an Excel time to decimal multiply by 24

More information on Date and Time
http://www.mvps.org/dmcritchie/excel/datetime.htm
http://www.cpearson.com/excel/datetime.htm
Time Sheets
http://www.cpearson.com/excel/topic.htm
http://www.cpearson.com/excel/overtime.htm

You can't use a formula to refer to itself and that or referring to
another cell that refers to the cell with the formula (or more intermediates)
will result in a circular reference.

You probably want to enter your time as 9:45 with a colon
A2: 9:45
B2: 17:00
C2: 1

simple formula:
D2: =24* (B2-A2) - C2 format as decimal (hours)

to provide for time once through midnight
D2: =24*(B2-A2+(A1B2)) - C2 format as decimal (to show hours)

(A1B2) is a logical value is 1 if True or 0 if False so it adds 1 day if True

Please use your first and lastname in newsgroups, particularly technical newsgroups.
---
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

"NMHemp" wrote in message ...
I'm stuck. I'm trying to create a time sheet where if I enter time in decimal
format, it will display in hour format automatically. I also want it to
calculate the difference between the times (including lunch breaks). So, for
example, if I start at 9:45 am, I can input 9.75 (to be displayed as 9:45 am)
in A2, 17.00 in b2 (to be displayed as 5:00 pm), and a one-hour break in c2.
D2 would then calculate the total. I've experimented with different formulas,
but seem to run into a circular reference error. Any suggestions?

Thanks.



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 sheet Monty Excel Discussion (Misc queries) 1 March 24th 06 10:21 AM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 0 March 16th 06 09:45 PM
Excel formula for a time sheet HRMSN Excel Worksheet Functions 1 August 10th 05 03:07 PM
How to set up weekly time sheet with flexi time. Chris Excel Worksheet Functions 0 June 9th 05 02:30 AM


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