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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,216,075
Messages
6,128,659
Members
449,462
Latest member
Chislobog

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