+ Reply to Thread
Results 1 to 6 of 6

Can't use SolverOk function without using VBA?

  1. #1
    Registered User
    Join Date
    01-03-2017
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    2

    Can't use SolverOk function without using VBA?

    Hi,

    I'm pretty new to Excel and I'm trying to do something where excel solves an equation for me and solves it again whenever I add new data in a table I made. Basically I need Excel to solve an equation to equal a specified cell, however the Solver under "Data" doesn't let me add the value of a specific cell in the Value Of:, only specific numerical values. I tried instead using the SolverOk function after some googling, but now I get a #VALUE!. This is my attempt:

    Please Login or Register  to view this content.
    Is this because I'm trying to do it directly in a cell instead of in VBA?

    Thanks in advance.

  2. #2
    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: Can't use SolverOk function without using VBA?

    Welcome to the board.

    SolverOK is not a worksheet function.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-03-2017
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    2
    Quote Originally Posted by shg View Post
    Welcome to the board.

    SolverOK is not a worksheet function.
    Thanks.

    I see. Thanks for the quick reply.

  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: Can't use SolverOk function without using VBA?

    You're welcome.

  5. #5
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Can't use SolverOk function without using VBA?

    Hi,

    You can not use any function without defining in VBA module if it is not an excel work sheet function.

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Can't use SolverOk function without using VBA?

    I need Excel to solve an equation to equal a specified cell,
    Add this as a constraint instead i.e set your objective cell equal to your specific cell.

    Alf

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. SolverOK Function without Dialog Box
    By Jason Carlos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2014, 08:06 PM
  3. 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
  4. 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
  5. Excel does'nt reconize SolverOK
    By lahbib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 12:40 PM
  6. [SOLVED] Solver VB interface 'SolverOK' fails
    By XydQyv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2005, 06:05 PM
  7. [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