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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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