Break down a total quantity into columns

joshc

New Member
Joined
Sep 6, 2017
Messages
5
Hello All!

Got a query which I hope someone can help with.. I have a spreadsheet that I need to create for work due to a new process. Essentially what I need help on is a formula which automatically breaks down the allocation (column B) into packs (columns D-M). Below is a shortened version of what we use - could be up to 100 packs per store and over 1000 stores for example.

AllocationPack SizePack 1Pack 2Pack 3Pack 4Pack 5Pack 6Pack 7Pack 8Pack 9Pack 10
Store 175075
Store 225075
Store 316575
Store 45075
Store 57575
Store 631575
Store 710575
Store 85075
Store 917575
Store 1020075

<tbody>
</tbody>

chYVyWk
chYVyWk
The maximum pack size is in column C and each pack should not exceed this value. If we look at the first 2 rows of data it would be broken down as per the below.

AllocationPack SizePack 1Pack 2Pack 3Pack 4Pack 5Pack 6Pack 7Pack 8Pack 9Pack 10
Store 17507575757575757575757575
Store 22507575757525
Store 316575
Store 45075
Store 57575
Store 631575
Store 710575
Store 85075
Store 917575
Store 1020075

<tbody>
</tbody>


Any help appreciated!

Cheers
Josh
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Place this formula in D2:
=MIN($C2,$B2)
copy down for all of column D

Place this formula in E2:
=MIN($C2,$B2-SUM($D2:D2))

and copy to all the rest of your cells in columns E through M
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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