How to max sum of value to 11.5 and subtract difference from other cell

laurendp

New Member
Joined
Dec 20, 2016
Messages
1
Hi all,

Can someone please assist with providing the following formula to calculate how to max out the total cell, (Q13=16.3 on my worksheet) to 11.5 and then subtract the Q13 difference from the cell that says 8.8 (P12 on my worksheet) This an attempt to calculate the difference in labor for individual people, once one person reaches 11.5 hours, it will need to take from the second employee's hours in P12 until those hours are depleted to 0. If anyone can help it would be greatly appreciated!

[TABLE="width: 500"]
<tbody>[TR]
[TD]0[/TD]
[TD]10.8[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]3.5[/TD]
[/TR]
[TR]
[TD]2.1[/TD]
[TD]2.0[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]8.8[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]9.9[/TD]
[TD]16.3[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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