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!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Watch MrExcel Video

Forum statistics

Threads
1,130,176
Messages
5,640,614
Members
417,158
Latest member
jimmy1986

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