Formula in excel

Shazzi1005

New Member
Joined
Sep 2, 2019
Messages
7
I think I need to use an IF formula but can’t work it out.

I have F4+E4 to give me the G4. So i have a few different hours so I need the formula so that if G4 is equal to or greater then 8 then the remainder hours calculate to multiply by 1.5

Can anyone help please?
 
Yes, that's what it's doing.

e.g. row 5 is 08:30 to 19:30 so eleven hours.
The 8 goes into the "Cap at 8" column at standard rate of x 1.
The next 2 of the 11 hours (hours 9 and 10) are at 1.5 rate so I multiply by 1.5 and those 2 hours become the "8 to 10 x 1.5" value of 3.
The last hour of those 11 is at double rate so the "Over10 x 2" becomes a value of 2.
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Ok so but I need 1.5 times cell to cap at 2 as with overtime they get 2 hours at 1.5 and all other hours are double after that
 
Upvote 0
So you don't want it to do the multiplication, just show the number of hours which will need the multiplication applied?

OK, this should do it:

EFGHI
4Start TimeEnd TimeCap at 8 8 to 10 for 1.5Over 10 for 2
59:0018:00810
68:3019:30821
77:0021:00824
810:0016:00600

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Shazzi1005

Worksheet Formulas
CellFormula
G5=IF(((F5-E5)*24)>8,8,(F5-E5)*24)
H5=IF(((F5-E5)*24) > 8,MIN(((F5-E5)*24),10)-8,0)
I5
=IF(((F5-E5)*24) > 10,((((F5-E5)*24)-10)),0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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