ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   i want to calculate the houers of workers 21:00 - 05:00 =8 (https://www.excelbanter.com/excel-worksheet-functions/47455-i-want-calculate-houers-workers-21-00-05-00-%3D8.html)

rafi

i want to calculate the houers of workers 21:00 - 05:00 =8
 
i just want to put the time a worker come and the time he go and to have the
number of houers he worked

RagDyer

With start time in A1,
And end time in B1,
Try this in C1:

=((B1-A1+(B1<A1))*24)*AND(B1<0,A1<0)

Make sure C1 is formatted to General or Number.

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"rafi" <rafi @discussions.microsoft.com wrote in message
...
i just want to put the time a worker come and the time he go and to have

the
number of houers he worked



Mike Punko


A B C
1 Start End Duration
2 7:12 AM 4:30 PM 9:18

C2= B2-A1
Set Cell to hh:mm

Hope this helps

"rafi" wrote:

i just want to put the time a worker come and the time he go and to have the
number of houers he worked


Ron Rosenfeld

On Tue, 27 Sep 2005 12:19:04 -0700, "rafi" <rafi @discussions.microsoft.com
wrote:

i just want to put the time a worker come and the time he go and to have the
number of houers he worked



=(EndTime-StartTime)+(StartTimeEndTime)

Format the result as h:mm


--ron


All times are GMT +1. The time now is 03:38 AM.

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