I'm trying to Solver in Excel. But I have a list of input variables in which the number of cells is dependent on the number in another cell.
For example, if cell A1 is 4, then the number of input variables will be 4, which could from A2:D2. This applies to the constraints, which for example I want A2:D2 < 20.
I have tried using named reference, but once I enter the reference, it shows the absolute cell reference (eg. A2:D2) rather than the name.
As a result, whenever I want to run, I need to refresh the input variable and the constraints, which is quite troublesome.
Is it possible to overcome this, without resorting to programming macros?
Thanks.