Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I set up a time sheet in Excel?

What I need to do is have people enter the time they start, what time they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you deal
with the 12:00 hour, which then seems to mess up any formulas. For example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create a
formula where Excel will get the correct answer of 6:30 minutes worked? HELP!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default How do I set up a time sheet in Excel?

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you deal
with the 12:00 hour, which then seems to mess up any formulas. For example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create a
formula where Excel will get the correct answer of 6:30 minutes worked? HELP!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I set up a time sheet in Excel?

They need to put in 7:00, rather than 7, and preferably 13:30 rather than
1:30, but you can get away with 1:30 PM.
After that, it's straight subtraction. Format the results as [h]:mm and
that will cope with adding up the week's total to more than 24 hours.

At a push you could cope with the 12 hour problem with =MOD(B2-A2,0.5), but
I wouldn't recommend it.
--
David Biddulph


"Julie Holmberg" <Julie wrote in message
...
What I need to do is have people enter the time they start, what time they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How do I set up a time sheet in Excel?

Or

=D2-A2-(C2-B2)

--


Regards,


Peo Sjoblom

"HARSHAWARDHAN. S .SHASTRI"
wrote in message
...
Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time
they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create
a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I set up a time sheet in Excel?

I guess you intended =if(b2<a2,b2-a2+12+d2-c2,b2-a2+d2-c2) rather than
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)?

Adding 12 is fine if the inputs are all numbers of hours (rather than
times), so if it were 1.5 rather than 1:30 your formula (as modified) would
work in those conditions, but I wouldn't recommend going down that route.
[If you did go that way, you may want to allow for coming back from lunch at
12:45?]
--
David Biddulph

"HARSHAWARDHAN. S .SHASTRI"
wrote in message
...
Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time
they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create
a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How do I set up a time sheet in Excel?

Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come back at
12:45, then the last part of the equation needs to take into consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time they
leave for lunch, come back from lunch and leave at the end of the day. I
want Excel to automatically calculate the number of hours and minutes for
each of these so that I can then add up the total number of hours and minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time or
numbers?) and then whenever I try to add or subtract hours, how do you deal
with the 12:00 hour, which then seems to mess up any formulas. For example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you create a
formula where Excel will get the correct answer of 6:30 minutes worked? HELP!

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How do I set up a time sheet in Excel?

No it doesn't, as long as they stay within the same date.
If they take lunch at 11:45 PM and come back at 12:45 AM it needs to be
considered but not otherwise.

one Excel hour = 1/24th of a day and one day = 1 so basically if you go at
lunch at
11:45 AM you just subtract


=0.53125-0.489583333333333

is


0.0416666666666667


formatted as time hh:mm

equals 1:00



--


Regards,


Peo Sjoblom

"Julie Holmberg" wrote in message
...
Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come back
at
12:45, then the last part of the equation needs to take into consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time
they
leave for lunch, come back from lunch and leave at the end of the day.
I
want Excel to automatically calculate the number of hours and minutes
for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time
or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you
create a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I set up a time sheet in Excel?

Yes, that's right. Perhaps my message to in reply to Harshawardhan's post
hasn't got to your news server yet?

You could use =MOD(B2-A2,0.5)+MOD(D2-A2,0.5), but I would stick to my
recommendation of using either the 24 hour clock or specifically saying 1:30
PM, not just 1:30.
--
David Biddulph

"Julie Holmberg" wrote in message
...
Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come back
at
12:45, then the last part of the equation needs to take into consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time
they
leave for lunch, come back from lunch and leave at the end of the day.
I
want Excel to automatically calculate the number of hours and minutes
for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time
or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you
create a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How do I set up a time sheet in Excel?

I did get your posting, thank you. I have tried the formula and it is not
working. I amgoing to try and post it in this message so you can see what
I'm trying. Thank you again...
Mon
9/8/2008
7:00 (cell d13)
11:45 (cell d14)
12:45 (cell d15)
4:00 (cell d16)

Here is the formula I am trying:
=IF(D14<D13,D14-D13+12+D16-D15,D14-D13+D16-D15)



"David Biddulph" wrote:

Yes, that's right. Perhaps my message to in reply to Harshawardhan's post
hasn't got to your news server yet?

You could use =MOD(B2-A2,0.5)+MOD(D2-A2,0.5), but I would stick to my
recommendation of using either the 24 hour clock or specifically saying 1:30
PM, not just 1:30.
--
David Biddulph

"Julie Holmberg" wrote in message
...
Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come back
at
12:45, then the last part of the equation needs to take into consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come back
from lunch and D for leave at the end then add this formula in column E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what time
they
leave for lunch, come back from lunch and leave at the end of the day.
I
want Excel to automatically calculate the number of hours and minutes
for
each of these so that I can then add up the total number of hours and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as time
or
numbers?) and then whenever I try to add or subtract hours, how do you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you
create a
formula where Excel will get the correct answer of 6:30 minutes worked?
HELP!






  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How do I set up a time sheet in Excel?

Yikes!

Try


=D16-D13-(D15-D14)

if the start time is before midnight and end after midnight you can use


=MOD(D16-D13-(D15-D14),1)


format result as [h]:mm or h:mm

--


Regards,


Peo Sjoblom

"Julie Holmberg" wrote in message
...
I did get your posting, thank you. I have tried the formula and it is not
working. I amgoing to try and post it in this message so you can see what
I'm trying. Thank you again...
Mon
9/8/2008
7:00 (cell d13)
11:45 (cell d14)
12:45 (cell d15)
4:00 (cell d16)

Here is the formula I am trying:
=IF(D14<D13,D14-D13+12+D16-D15,D14-D13+D16-D15)



"David Biddulph" wrote:

Yes, that's right. Perhaps my message to in reply to Harshawardhan's post
hasn't got to your news server yet?

You could use =MOD(B2-A2,0.5)+MOD(D2-A2,0.5), but I would stick to my
recommendation of using either the 24 hour clock or specifically saying
1:30
PM, not just 1:30.
--
David Biddulph

"Julie Holmberg" wrote in
message
...
Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come
back
at
12:45, then the last part of the equation needs to take into
consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come
back
from lunch and D for leave at the end then add this formula in column
E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what
time
they
leave for lunch, come back from lunch and leave at the end of the
day.
I
want Excel to automatically calculate the number of hours and
minutes
for
each of these so that I can then add up the total number of hours
and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as
time
or
numbers?) and then whenever I try to add or subtract hours, how do
you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you
create a
formula where Excel will get the correct answer of 6:30 minutes
worked?
HELP!






  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I set up a time sheet in Excel?

If you did indeed read my reply to Harshawardhan's post then you'll see why
=IF(D14<D13,D14-D13+12+D16-D15,D14-D13+D16-D15) won't work.

Did you try =MOD(D14-D13,0.5)+MOD(D16-D15,0.5) ?

But (to say it one more time in case you are still missing it):
"I would stick to my recommendation of using either the 24 hour clock or
specifically saying 1:30 PM, not just 1:30."
Putting in ambiguous times is asking for trouble.
--
David Biddulph

"Julie Holmberg" wrote in message
...
I did get your posting, thank you. I have tried the formula and it is not
working. I amgoing to try and post it in this message so you can see what
I'm trying. Thank you again...
Mon
9/8/2008
7:00 (cell d13)
11:45 (cell d14)
12:45 (cell d15)
4:00 (cell d16)

Here is the formula I am trying:
=IF(D14<D13,D14-D13+12+D16-D15,D14-D13+D16-D15)



"David Biddulph" wrote:

Yes, that's right. Perhaps my message to in reply to Harshawardhan's post
hasn't got to your news server yet?

You could use =MOD(B2-A2,0.5)+MOD(D2-A2,0.5), but I would stick to my
recommendation of using either the 24 hour clock or specifically saying
1:30
PM, not just 1:30.
--
David Biddulph

"Julie Holmberg" wrote in
message
...
Thank you for the help - I tried this but I think it needs more in the
formula. The problem being if they go to lunch say at 11:45 and come
back
at
12:45, then the last part of the equation needs to take into
consideration
the same 12 hour issue, right?

"HARSHAWARDHAN. S .SHASTRI" wrote:

Hi Julie,

Let A is column for Start Time , B for leave for lunch,C for come
back
from lunch and D for leave at the end then add this formula in column
E
say
in cell E2.
=if(b2<a2,a2-b2+12+d2-c2,b2-a2+d2-c2)

Harshawardhan shastri

================================================== ===========

"Julie Holmberg" wrote:

What I need to do is have people enter the time they start, what
time
they
leave for lunch, come back from lunch and leave at the end of the
day.
I
want Excel to automatically calculate the number of hours and
minutes
for
each of these so that I can then add up the total number of hours
and
minutes
worked each day.
I am having a hard time formatting the cells (do I format them as
time
or
numbers?) and then whenever I try to add or subtract hours, how do
you
deal
with the 12:00 hour, which then seems to mess up any formulas. For
example,
if someone clocks in at 7 and goes to lunch at 1:30 - how can you
create a
formula where Excel will get the correct answer of 6:30 minutes
worked?
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 sheet in Excel (help!) crookedsoul108 Excel Discussion (Misc queries) 6 November 2nd 07 12:46 AM
excel time sheet aloncillo Excel Discussion (Misc queries) 2 December 11th 06 06:11 PM
Excel Used as a Time Sheet emanna Excel Discussion (Misc queries) 6 March 2nd 06 05:25 PM
How do I time Hours & mins in excel - Time sheet Helen Excel Discussion (Misc queries) 5 September 17th 05 11:42 AM
HOW DO I CALCULATE TIME IN A TIME SHEET FOR EXCEL RAFAEL New Users to Excel 1 June 26th 05 11:32 PM


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