Let Excel Calculate

bullit_nl

Active Member
Joined
Jun 27, 2002
Messages
280
I wanna know if it's possible to let excel calculate for me how many artikels from each color i have to take to fill a box with a certain number of artikels. For example:

I know how many artikels i have by color
I know how many artikels i want to put in the box (this is not always the same)
I know how many colors i want to have in the box (this is not always the same)

With this facts i want excel to calculate for me.

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How do all the numbers together make 598390??

I used 1000 Separator (.) that's why. The 3 decimal means nothing.
 
Upvote 0
Okay, I can't get this to work as well as I would have liked as It would be better to find the maximum number of boxes that can be made - for some reason it hangs solver but it works okay when trying to find your exact value.

Part 1 as too big for single post
combinations permutations macro.xls
KLMNOPQRST
1Stock67589365481012549854680000996546654348256
2Qtyused6156029130856208574072300819905886042300
3
4Bi-colorCrmeYellowOrangePurpleRedpinkwhiteNoofboxes
5box13030303030302
6box23030303030302
7box33030303030302
8box4303030303030287
9box53030303030302
10box63030303030302
11box73030303030302
12box83030303030302
13box93030303030302
14box103030303030302
15box113030303030303
16box123030303030303
17box133030303030303
18box143030303030303
19box153030303030303
Sheet2
 
Upvote 0
combinations permutations macro.xls
KLMNOPQRST
20box16303030303030574
21box17303030303030879
22box18303030303030128
23box19303030303030145
24box203030303030303
25box213030303030303
26box22303030303030595
27box2330303030303023
28box243030303030303
29box2530303030303024
30box263030303030303
31box273030303030303
32box28303030303030172
33
34totalboxes2875
Sheet2


Solver ( which is an addin - tools addins)

set target to exact value and enter the value
by changing cells t5:t32
constraints are L2:s2 are =< l1:s1 ( qty used =< qty available)
t5:t32 are >=0
and t5:t32 are integers

Anyone know why it has problems when set to maximum - too many variables?
 
Upvote 0
Oh, I forgot to say that this set up is for all the options of combining 6 colours from 8. So each bag would have 6 different colours rather than 5 different plus any one other. I think that would have too many permutations
 
Upvote 0
Thanks GorD.

But i'm looking for a different outcome. I would like to know from excel how many boxes i can make with the same mix and when that mix is finisched the next mix i have to make.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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