+ Reply to Thread
Results 1 to 4 of 4

Solver Question

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    50

    Solver Question

    I've recently been using Solver to pick out optimal baseball lineups provided their cost and how much I think they're worth. Solver runs fine, but my issue is when I attempt to run it the next day with a different number of players for each position I have to go into the Solver parameters box and reenter the named ranges for the changing cells. Is there any way to make Solver automatically notice the named ranges change in size?

    Hopefully my question makes sense and thanks in advance for any help.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Solver Question

    Hi,

    You can set up dynamic named ranges using the OFFSET function, like the following example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This will return a range that is 1 column wide and the height of the range will depend on how many numeric values are in the range A1:A100. These specifics can obviously be changed to suit your needs.

    If you need/want some help to try this, please upload your workbook (Reply --> Go Advanced --> Manage Attachments).

    I hope this helps

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    50

    Re: Solver Question

    Well I tried it, but unfortunately when I run Solver it doesn't want to recognize that I've added changing cells, so I still have to go in and reenter each individual named range. I'm thinking I may have to use code to solve this issue but not sure I'm ready for that.

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Solver Question

    Hi,

    Kindly post a copy of your solver workbook (without sensitive information, mock up info probably) for us to get to understand your problem and code a solution for it.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. solver question
    By Irishman07 in forum Excel General
    Replies: 1
    Last Post: 02-10-2009, 05:22 PM
  2. Solver question
    By BigMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2007, 01:10 AM
  3. Solver question
    By jspizman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2006, 10:29 AM
  4. Solver question
    By Mick in forum Excel General
    Replies: 0
    Last Post: 04-21-2006, 12:35 PM
  5. Solver question
    By Bill_S in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2006, 02:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1