Splitting a number for normal and overtime breakdown

Soper87

New Member
Joined
Aug 16, 2017
Messages
4
Hi,

I am sure to have done this before but racking my brain has led me to actually take the plunge into the forum to get help.

In creating a spreadsheet to simplify some tasks, I have managed to create it such that it will return the total number of hours required to complete a work package based on the options chosen. In this example it returns a total of 24 hours are required to do a specific job.

A standard working day is 10 hours consisting of 8 hours at normal working time and 2 hours overtime.

I need to be able to break the total hours down (24) to show the total Normal Time (NT) and Over Time (OT) hours required for this task. I would show these in two columns titled as such. In essence for a 24 hour job, the breakdown should be 20 hours NT and 4 hours OT (8;2 8;2 and then 4)

Is there a means to do this formula based or is it best set-up with VBA?

Thanks for any assistance!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Excel 2010
ABCD
1Normal Time8
2Overtime2
3Day10
4
5NTOT
6Project24204
5c
Cell Formulas
RangeFormula
C6=INT(B6/10)*8+MIN(8,MOD(B6/10,1)*10)
D6=B6-C6
 
Last edited:
Upvote 0
Hi. You could try:

=FLOOR(A1,10)/10*8+MOD(A1,10)

for the normal time. The OT will just be the difference.
 
Upvote 0
"
=FLOOR(A1,10)/10*8+MOD(A1,10)

for the normal time. The OT will just be the difference."

Does this work if the project is 29 hours?
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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