It is difficult to say for certain without actually seeing the problem, but it sounds like the built in Solver utility should be able to solve the problem for you without VBA.
https://support.office.com/en-us/art...B-F63E45925040
http://www.solver.com/solver-tutoria...-or-solver-sdk
http://www.excel-easy.com/data-analysis/solver.html
Bookmarks