Combine data into limited quantities efficiently

andi1987uk

New Member
Joined
Apr 19, 2019
Messages
7
Hi All,
Going to do my best to explain what I’m looking for here :-).
So I’ve created a table that calculates a quantity of an item (eg the amount of pipe required for a project by room) this results in a range of pipe lengths. What I’m hoping for is a formula to group the data (as efficiently as possible) into the rolls the pipe is purchased in. So an example would be that I have 5 rows of data of metres of pipe lets say 50, 50, 100, 150 & 150 totalling 500 now let’s say the pipe is purchased in rolls of 100, 200 & 300 metres. To me the most efficient combination would be 1x 200 and 1x 300 rolls. Is there a formula that can help with this?

Thanks in advance

Andrew
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, first of all so sorry it's taken so long to post - this project had to be put on hold due to some other work.

Here is the sample data - I hope it is clear :-)

1582285976679.png
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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