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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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
So to the left is the data that needs to be organised and to the right are the quantities each type comes in.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,704
Members
449,048
Latest member
81jamesacct

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