Rounding Range to Specific Number

BPW

New Member
Joined
Mar 7, 2013
Messages
31
Office Version
  1. 365
Platform
  1. Windows
I'm attempting to break out a quantity for six locations by a percentage, retaining pack rules with the sum equating to the original quantity. I'm spinning my wheels on a solution and haven't been able to find any help searching around. Is this possible? Would anyone be able to provide guidance? See below. Thanks!

1637701066736.png
 

Attachments

  • 1637700927710.png
    1637700927710.png
    10 KB · Views: 9

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Book1
ABCDEFGHI
1SplitQtyMinDiffAllocationTotal78
221%16.38124.3818PackSize6
310%7.861.86Allocation = TotalTRUE
420%15.6123.618
516%12.48120.4812
622%17.16125.1618
712%9.3663.366
8Packs to add:3Total:78
9
Sheet2
Cell Formulas
RangeFormula
H3H3=H1=E8
B2:B7B2=A2*$H$1
D2:D7D2=B2-C2
C2:C7C2=INT(B2/$H$2)*$H$2
C8C8=(H1-SUM(C2:C7))/H2
E2:E7E2=IF(RANK(D2,$D$2:$D$7,0)<=$C$8,C2+$H$2,C2)
E8E8=SUM(E2:E7)
 
  • Like
Reactions: BPW
Upvote 0
Solution
This is perfect JGordan11, thank you!! I didn't even think to take this approach!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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