Help for formula with time

sherintan

New Member
Joined
Aug 22, 2017
Messages
2
Hi everyone, i need help for formula in time formulation in excel.

[TABLE="width: 500"]
<tbody>[TR]
[TD]
[/TD]
[TD][TABLE="width: 350"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD]START DEPOSITING[/TD]
[TD]STOP DEPOSITING[/TD]
[TD]Head Count[/TD]
[TD]Manhour (hrs)[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD]08:35[/TD]
[TD]21:22[/TD]
[TD]2[/TD]
[TD]12:47[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The manhour for this machine time is 12.47. However when I multiply with headcount, it will reflect as 4.12hrs which is not right.
Please assist me with the correct formula as I will need to see the total manhour.

Current formula used is =IF(start>stop,1+stop,stop)-start*headcount
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
your () are in the wrong place...
=(IF(start>stop,1+stop,stop)-start)*headcount

in fact, try this instead...
=MOD(start-stop,1)*headcount
 
Upvote 0
your () are in the wrong place...
=(IF(start>stop,1+stop,stop)-start)*headcount

in fact, try this instead...
=MOD(start-stop,1)*headcount


Thank you for the answer. However if 1 headcount is 12.47, 2 should be 25.34. However if i will to use your formula the answer is 22.26 instead.
Did i miss out anything?
 
Upvote 0
I had the times swapped around, apologies...
=MOD(stop-start,1)*headcount

You may need to format as Custom [h]:mm;@
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top