Set a value range to reference another cell

PlumGr8

Board Regular
Joined
Nov 23, 2017
Messages
136
Been playing around but not sure if i can easily do what i am trying to do. I am working on an hours calculation sheet, and i want to break it down between Reg Pay, OT and DT. If i have say cell A5 that says "15" Hrs worked, is there a way to break down the 15 from there? Meaning if i have Reg Pay in C5, OT in D5, DT in E5, can i set cell C5 to display a value equal or less than 9, another formula for D5 to display 9 to 12, and E5 to display greater than or equal to 12, all based off the value entered in A5?
 

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).
These will show the number of hours in each bucket, e.g. RegPay <=8, OT pay 1 to 4 (hours 9-12), DT pay over 12.

C5: =MIN(A5,8)
D5: =IF(A5>8,MIN(A5-8,4),0)
E5: =IF(A5>12,A5-12,0)
 
Upvote 0
Solution
These will show the number of hours in each bucket, e.g. RegPay <=8, OT pay 1 to 4 (hours 9-12), DT pay over 12.

C5: =MIN(A5,8)
D5: =IF(A5>8,MIN(A5-8,4),0)
E5: =IF(A5>12,A5-12,0)
Looks like it worked perfect, thanks a lot for the help.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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