Computer problems,Computer help
*AX SOFT>>>Software

Excel Solver for large data set (varying constants)?


Because Excel Solver can only have one cell for 'Target Cell', it's unclear how I can automate Solver to analyze a large data set?

A good example of how I'm using Excel's Solver is given here: http://www.vertex42.com/ExcelArticles/ex... by Example #2, 2 eqn's and 2 unknowns.

This example shows for any given values of constants "r1,r2,r3", you'll get your "angle" solutions. However, this example only shows how to setup Solver for one set of constants. What if I have (by analogy to this example), 3 columns of data with "r1,r2,r3", how do I use Solver to find solutions down column 4? Indeed, I can setup Solver to analyze each row by copying cells, but I'd like to analyze a ~100 hundred rows with one click. Can I somehow automate solver to do this? I'm hoping the solution is simple, but it's not intuitive.

Regards,
John

Your link doesn't work, so I can't see what you are trying to do. However, if you need to run the Solver many times and want to automate it then that is no problem. The Solver is fully programmable in VBA.

To automate the Solver in VBA you first need to set a reference to Solver.xla or Solver.xlam (Excel 2003 or 2007) in your VBA project. Open the VBA editor. Add a new module and open it. Then go to Tools --> References. If Solver isn't listed, then use the Browse button to find it in the /Library/Solver folder of your Office folder.

Once you've done that you are ready to go. Search for Solver in the VBA help and you will find all of the functions (SolverReset, SolverOk, SolverSolve, etc). You can run it through whatever looping structure fits your needs, resetting the target cell, changing cells, and even the constraints on each pass.

Tim
http://feeds.feedburner.com/ExcelBlog

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook
Related information
  • Where can i get the cheapest Microsoft office software, iv tried curry's,comet and PC world...too expensive

    You can buy Microsoft office software for cheap at ...

  • McAfee Security Center Question.?

    If you have a router it propably has a firewall on it. so i would turn off McAfee firewall and buy Bitdefender off ebay its cheaper and takes less CPU to run everyones a winner.

    ...
  • Free music download?

    you named the two major ones. i feel there is two sides to this..how smaller artist benefit and the impact to major label artist because artists on a major label who spend thousands of dollars to r...

  • Home contents list?

    Home Insurance Contents Calculator? ...

  • I had installed windows xp recently but it is showing only drive on which i installed windows?.....plz hlp...?

    Right clickon My comp---->Manage---->clk on storage---->Disk management........u c ur one already created partition....the other uc is not created in d other right click....>clk on form...

  • PLEASE HELP!!! now that stage 6 is gone!?

    veoh.com

    ...
  • Office powerpoint 2007 help?

    PowerPoint 2007 Solution Center Start here when Microsoft PowerPoint 2007 is not working how you expected. ... Help installing PowerPoint. Install and to repair Office 2007 features ... support....

  • Which aim????

    the old one....it's definitly better...only smart people, like older sisters pick aim like that

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster