Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cheryl
 
Posts: n/a
Default How to calculate hours?

I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start ----- Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM). I
need the total hrs worked to calculate automatically. Can someone please
help?


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=MOD(End_Time - Start_Time,1)

so if B2 holds end time and A2 start time

=MOD(B2-A2,1)

if you total the hours later use custom format as in [hh]:mm or else the
display will start over again after 24 hours

--
Regards,

Peo Sjoblom

(No private emails please)


"cheryl" wrote in message
...
I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start -----
Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM).
I
need the total hrs worked to calculate automatically. Can someone please
help?



  #3   Report Post  
Govind
 
Posts: n/a
Default

Hi,

Use

=IF(B1<A1,B1+1-A1,B1-A1)

where B1 is the stop time and A1 is the start time.Format the result in
hour format.

Regards

Govind.

cheryl wrote:

I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start ----- Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM). I
need the total hrs worked to calculate automatically. Can someone please
help?

  #4   Report Post  
cheryl
 
Posts: n/a
Default

Thanks so much. Now each persons hours are calculating correctly. But now
the crews total hours are not adding up correctly at the bottom of the
column. Does anyone know why or how to format or fix this cell?

"Govind" wrote:

Hi,

Use

=IF(B1<A1,B1+1-A1,B1-A1)

where B1 is the stop time and A1 is the start time.Format the result in
hour format.

Regards

Govind.

cheryl wrote:

I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start ----- Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM). I
need the total hrs worked to calculate automatically. Can someone please
help?


  #5   Report Post  
Govind
 
Posts: n/a
Default

Hi,

The total should be a normal sum formula but the cell should be
formatted in hour format.

Regards

Govind.

cheryl wrote:
Thanks so much. Now each persons hours are calculating correctly. But now
the crews total hours are not adding up correctly at the bottom of the
column. Does anyone know why or how to format or fix this cell?

"Govind" wrote:


Hi,

Use

=IF(B1<A1,B1+1-A1,B1-A1)

where B1 is the stop time and A1 is the start time.Format the result in
hour format.

Regards

Govind.

cheryl wrote:


I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start ----- Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM). I
need the total hrs worked to calculate automatically. Can someone please
help?




  #6   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Cheryl
As Peo told you in his response, your total cell need to be custom formatted
to [hh]:mm to allow a rollover past 24 hours

--
Regards

Roger Govier


"cheryl" wrote in message
...
Thanks so much. Now each persons hours are calculating correctly. But
now
the crews total hours are not adding up correctly at the bottom of the
column. Does anyone know why or how to format or fix this cell?

"Govind" wrote:

Hi,

Use

=IF(B1<A1,B1+1-A1,B1-A1)

where B1 is the stop time and A1 is the start time.Format the result in
hour format.

Regards

Govind.

cheryl wrote:

I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start -----
Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM
0:00
(night shift) 6:00 PM 6:00 AM
0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00
PM). I
need the total hrs worked to calculate automatically. Can someone
please
help?




  #7   Report Post  
JMB
 
Posts: n/a
Default

You should be able to just subtract the begin time from the ending time, but
you may need to enter the date along with the time (to accomodate shifts that
span different days).

For example:
A B C
1 7/31/05 6:00 7/31/05 18:00 =B1-A1



"cheryl" wrote:

I have a stop and start time in two side by side cells. I need the hrs
worked in the next cell but the variouse functions I have tried havn't
worked. I usually get 0:00.
I'm using the custom formatting hh:mm. I have two twelve hours shifts,
24/7. My results look like this: Start ----- Stop ------
Total hrs worked
(day shift) 6:00 AM 6:00 PM 0:00
(night shift) 6:00 PM 6:00 AM 0:00
(occasional odd ones) 8:00 PM 2:00 AM 0:00

The start/stop entries are be entered in military time (18:00 = 6:00 PM). I
need the total hrs worked to calculate automatically. Can someone please
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
calculate hours just can't figure it out monish74 Excel Worksheet Functions 1 February 13th 05 07:31 PM
calculate hours on work sheet monish74 Excel Worksheet Functions 2 February 12th 05 02:34 AM
calculate difference in time to hours Chris Excel Worksheet Functions 5 January 18th 05 06:07 PM
calculate average hours and minutes llstephens Excel Worksheet Functions 4 November 30th 04 03:47 PM
calculate average hours worked llstephens Excel Worksheet Functions 1 November 24th 04 02:37 PM


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