Hi,
I wrote a simple VBA solver macro that I can run on my PC. It is three separate problems with the same setup.
SolverReset
SolverAdd CellRef:="$C$22", Relation:=1, FormulaText:="$C$14"
SolverOk SetCell:="$C$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$C$19"
SolverSolve True
SolverReset
SolverAdd CellRef:="$D$22", Relation:=1, FormulaText:="$D$14"
SolverOk SetCell:="$D$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$D$19"
SolverSolve True
SolverReset
SolverAdd CellRef:="$E$22", Relation:=1, FormulaText:="$E$14"
SolverOk SetCell:="$E$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$E$19"
SolverSolve True
When I try to run the same program on my Mac running Excel for Mac 2011 (ver 14.1.2), it only solves the last of the three. I can reverse the order and it still only solves the last of three. (This runs fine on my PC, so I am wondering if the Mac version is buggy.)
To resolve this, I've looked around on the web and on this forum, but have not found anything useful so far.
Best,
Don
P.S. I did not see how to attach my file, so here are the values I am using in my test spreadsheet...
C14=0.5, C19=0.1, and C22=0.1*C19. I want to adjust C19 so as to maximize C22, with the constraint that C22<=C14. (The solution is 5, in this little example.) Values in columns D and E have the same setup.
I wrote a simple VBA solver macro that I can run on my PC. It is three separate problems with the same setup.
SolverReset
SolverAdd CellRef:="$C$22", Relation:=1, FormulaText:="$C$14"
SolverOk SetCell:="$C$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$C$19"
SolverSolve True
SolverReset
SolverAdd CellRef:="$D$22", Relation:=1, FormulaText:="$D$14"
SolverOk SetCell:="$D$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$D$19"
SolverSolve True
SolverReset
SolverAdd CellRef:="$E$22", Relation:=1, FormulaText:="$E$14"
SolverOk SetCell:="$E$22", MaxMinVal:=1, ValueOf:="0", ByChange:="$E$19"
SolverSolve True
When I try to run the same program on my Mac running Excel for Mac 2011 (ver 14.1.2), it only solves the last of the three. I can reverse the order and it still only solves the last of three. (This runs fine on my PC, so I am wondering if the Mac version is buggy.)
To resolve this, I've looked around on the web and on this forum, but have not found anything useful so far.
Best,
Don
P.S. I did not see how to attach my file, so here are the values I am using in my test spreadsheet...
C14=0.5, C19=0.1, and C22=0.1*C19. I want to adjust C19 so as to maximize C22, with the constraint that C22<=C14. (The solution is 5, in this little example.) Values in columns D and E have the same setup.
Last edited: