+ Reply to Thread
Results 1 to 3 of 3

SolverOK Function without Dialog Box

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Phoenix Arizona
    MS-Off Ver
    Excel 2010
    Posts
    34

    SolverOK Function without Dialog Box

    Hey,

    I want to use solver by using the =solverok formula and not the dialog box so that the answer updates automatically in my spreadsheet. I have attached an example:


    1) I want to change cell B6
    2) To the Exact Number in B7
    3) by Changing cell B8

    Here is the solver formula I found online: =SolverOk (SetCell, MaxMinVal, ValueOf, ByChange,Engine, EngineDesc)

    Here is what I have entered: =solverok(B8,3,B7,B6)

    I have the solver add-in installed.

    Thank you for the help!
    Attached Files Attached Files
    Last edited by Jason Carlos; 08-21-2014 at 06:53 PM.

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

    Re: SolverOK Function without Dialog Box

    You can't use SolverOK as a user-defined function. You can automate Solver from VBA, and there are many examples in the forum.

    But you probably don't need Solver for whatever it is you're trying to do, though I can't tell what that is.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,432

    Re: SolverOK Function without Dialog Box

    The solverok() function cannot be called from a spreadsheet cell like that. Solver's routines need to be able to modify the values of the by changing cells, and that is something that a function in a cell cannot do.

    I don't know my way around Excel's financial functions, but it seems that many of them are inter-related "inverse" functions. Like shg, I doubt Solver is needed for this problem, once you understand how the different financial functions are inter-related.

    The help file for the PMT() (http://office.microsoft.com/en-us/ma...927.aspx?CTT=1 ) function suggests that PMT, FV, PV, RATE, are all inter-related. Since your spreadsheet appears to be trying to find the Rate, I expect you may want to research the RATE() function (http://office.microsoft.com/en-us/ma...in=HA102927927 ) to see if it will solve for the Rate at fixed values for the other parameters. Even if the rate() function is not correct, I expect someone who understands these financial functions would be able to recommend the correct "inverse" function for this problem.

    If you decide it must be solved using Solver, automating Solver like this usually requires VBA sub procedure associated with the calculate event.

    If nothing else, this will bump your post back to the top and get some additional exposure.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Compile error: Sub or Function not defined ("SolverOk")
    By jimmypants in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2011, 02:28 AM
  2. VBA SolverOk with multiple changing cells and constraints
    By abilling in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2011, 08:20 PM
  3. Excel does'nt reconize SolverOK
    By lahbib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 12:40 PM
  4. Solver VB interface 'SolverOK' fails
    By XydQyv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2005, 06:05 PM
  5. [SOLVED] VBA SolverOK not inputting all values into Solver...
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 03:06 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