Automatic group-making from list

Noeleke

New Member
Joined
Aug 3, 2017
Messages
2
Dear MrExcel members,

I've been searching for the solution on the web, but I don't know how to call it so it hasn't been a huge success. I was hoping you could help me.

I'm looking for a macro/vba code/solver solution for the following problem: I want to make groups of 4/5/6 products that are selected (preferably cut, not copied) from a pre-determined list.

Example:

My list is as follows:

1A34
2B43
1B544
5C45
3A52
5B32

Now I want Excel to automatically make groups containing 1xA, 2xB and 1xC, selected from top to bottom (because of priorities). Is there a way to cut those products out of the list, so I can see what products are still left to be grouped?

Thanks so much!
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Watch MrExcel Video

Forum statistics

Threads
1,127,709
Messages
5,626,411
Members
416,183
Latest member
IanA

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
Top