I want to give instruction to an Excel to give me a sum of certain amount by changing only Quantities. In the pictures, let say I want to get the sum of 250 (cell H16) by changing cells G5:G15. I can do that by using Solver, but I also need to include some restrictions or rules for Excel to use. First of all, my quantities have to be integer numbers. Secondly, I want an Excel to return numbers for all changing cells (G5:G15). Sometimes Excel does not fill all selected changing cells and returns numbers only for 3 cells.
Any help or idea would be appreciated. Many thanks in advance.enter image description here

