Rounding Up or Down

Laguna11

New Member
Joined
Sep 25, 2010
Messages
26
I have a list of 3 individuals, one per column. Each column counts the number of entries each individual has performed a specific task each month. The last row adds the number of entries per individual.

However the individuals are paid a bonus of the total tasks carried out as follows: Number tasks per individual/total number of tasks x 50. The total of all 3 can't exceed 50.

If I look at the following:
Person1 25 tasks
Person2 26 tasks
Person3 2 tasks

The total is 53 and the results I get are 24, 25 and 2 which add up to 51 and not 50. Since these amounts will vary on a monthly basis is there any way in which this can be done in a formula or in VBA?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The formula calculates the cumulative apportionment and deducts the previous cumulative. When you copy the formula across it becomes (with changing references highlighted):

=ROUND(SUM($B16:B16)/SUM($B16:$D16)*50,0)-SUM($A19:A19)
=ROUND(SUM($B16:C16)/SUM($B16:$D16)*50,0)-SUM($A19:B19)
=ROUND(SUM($B16:D16)/SUM($B16:$D16)*50,0)-SUM($A19:C19)

That way the numbers will always add up to 50, because in the last formula the denominator is the same as the divisor.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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