After some help on this website I am now looking for more. This was my previous post: stacking and layering boxes in excel
I am now able to make all possible combinations. However my next step would be to set some parameters. By this I mean the height and weight of the boxes. If I were to place on “Sheet2” in Column A by box names (A,B,….) Column B by weight (kg) and Column C by height (millimeters). Then on “Sheet3” I place my maximum height and maximum weight. B2 maximum weight of 30 kg and C3 maximum height of 500 mm.
How can I get my macro to check against these parameters and if they do fit them they are placed in the column as in my previous question and if it goes over my weight or height it does not bother with placing it.
Hope to hear soon 🙂 Starting to enjoy excel!
Edit:
Box name Weight height
A 1 0.12
B 5 0.92
C 3 0.5
D 2 0.34
……..etc
This is how I would place my input information. I would like this for many boxes, maybe even up to 100
as a enhancement to the previous solution
input format
(Please implement your own input/output farmat after studying my code)
sample Input & output
Not limited to integer, you can use floating numbers
Code: