+ Reply to Thread
Results 1 to 4 of 4

beginner solver question

  1. #1
    Registered User
    Join Date
    07-28-2008
    Location
    Antarctica
    Posts
    7

    beginner solver question

    hello all,
    i presently have a vba macro that takes the number in cell A1 as an argument and outputs a number to cell A2. I would like to figure out what value of the argument (A1) will produce an output (A2) equal to a specified number, x say.

    So I was hoping to get the Solver to optimize A1 until A2=x as follows:
    1. guess A1
    2. run macro
    3 compare A2 to x
    4. repeat until A2=x

    However, I did not see an option in Solver that will allow me to do step 2. Can you please advise.

    Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: beginner solver question

    Are you asking for help with Solver or a macro?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-28-2008
    Location
    Antarctica
    Posts
    7

    Re: beginner solver question

    Solver. the macro is a black box.
    But now that you mention it, it just occured to me that I could just write my own macro to optimize.

    In any case, it doesn't look like Solver has the capability to update the target cell by running a macro.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: beginner solver question

    In any case, it doesn't look like Solver has the capability to update the target cell by running a macro.
    If by Macro you mean UDF, of course it does.

    If you can solve y=Sin(x) for y=0.5 by changing x, you can replace Sin() with any arbitrary built-in or user-defined function you like.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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