ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   need help with - time values... (https://www.excelbanter.com/excel-discussion-misc-queries/28717-need-help-time-values.html)

rvnwdr

need help with - time values...
 

Can anyone help me with this problem?

I am making a table that will calculate hrs worked. Column B has the
hr started. Column C has the end time. Note - the start time can be
in the evening and the end time can be in the am of the next day -
giving me a negetive number.

I would need the easiest way to find the time difference between the
two. This would be my column D. I would then need to add these two
columns up to figure the total number hrs worked...

Thanks! :)


--
rvnwdr
------------------------------------------------------------------------
rvnwdr's Profile: http://www.excelforum.com/member.php...o&userid=23903
View this thread: http://www.excelforum.com/showthread...hreadid=375589


mangesh_yadav


Use:
=IF(C1B1,C1-B1,1-(B1-C1))
and use the time format h:mm to display

For totalling, use:
=SUM(D1:D10)
assuming 10 rows of data, and format as dd:hh:mm because more than 24
hours will display the residual part in the format hh:mm. Example 27:00
will display 03:00. So changing to dd:hh:mm will display 1:03:00
correctly. If you want the display to show 27, then use:
=SUM(D1:D10)*24
and format as general

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375589


Bob Phillips

=MOD(C1-B1,1)

--
HTH

Bob Phillips

"rvnwdr" wrote in
message ...

Can anyone help me with this problem?

I am making a table that will calculate hrs worked. Column B has the
hr started. Column C has the end time. Note - the start time can be
in the evening and the end time can be in the am of the next day -
giving me a negetive number.

I would need the easiest way to find the time difference between the
two. This would be my column D. I would then need to add these two
columns up to figure the total number hrs worked...

Thanks! :)


--
rvnwdr
------------------------------------------------------------------------
rvnwdr's Profile:

http://www.excelforum.com/member.php...o&userid=23903
View this thread: http://www.excelforum.com/showthread...hreadid=375589





All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com