In Column A1:A25 I have a list of varying quantities of unique products ranging from 1 to 250 units. In Column B1:B25 I have listed the corresponding costs of each product, which may be duplicated. I receive various orders for mixes of my products. What I would like to do is allocate each order across my list of products to minimize my costs per order.
For example, if I get an order for 25 units of mixed product, and I have 10 units of Product No 1 at $1.50, 20 units of No 2 at $1,75, and 40 units of No 3 at $5.00, the order mix would be made up of 10 units of No 1,and 15 units of No 2. Alternatively, if the order was 35 units, it would be made up of all of No 1, all of No 2 and 5 of No 3.
Any ideas?
Thanks in advance.
For example, if I get an order for 25 units of mixed product, and I have 10 units of Product No 1 at $1.50, 20 units of No 2 at $1,75, and 40 units of No 3 at $5.00, the order mix would be made up of 10 units of No 1,and 15 units of No 2. Alternatively, if the order was 35 units, it would be made up of all of No 1, all of No 2 and 5 of No 3.
Any ideas?
Thanks in advance.