Closed Thread
Results 1 to 3 of 3

Excel Solver: Binary Constraint Cell Reference Error

  1. #1
    Registered User
    Join Date
    06-08-2020
    Location
    Elijay, United States
    MS-Off Ver
    2016
    Posts
    1

    Excel Solver: Binary Constraint Cell Reference Error

    I'm trying to add a constraint to my excel file, but every time I add the binary constraint, I get this error ""binary constraint cell reference must include only variable cells"
    It looks like it's almost undocumented.

    Edit:
    I figured it out. In order for binary constraint to work, you have to use cell reference of cells used in the Set Objective cell. If you try to set the binary constraint to cells not mentioned in the Set Objective cell, then this error will always occur.

  2. #2
    Registered User
    Join Date
    09-11-2022
    Location
    India
    MS-Off Ver
    EXCEL 2019
    Posts
    1

    Re: Excel Solver: Binary Constraint Cell Reference Error

    I tried but it is still not working. The set objective is B31, which is using G14:H18, but when I try to set G14:H18 as Binary, I get the same error.
    Please refer to the attached file and help.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Excel Solver: Binary Constraint Cell Reference Error

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Help in setting constraint for excel solver
    By piku9290dgp in forum Excel General
    Replies: 2
    Last Post: 12-04-2018, 02:20 PM
  2. Solver: Changing constraint throws error message, Bug or Misuse?
    By hansaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2018, 07:29 AM
  3. [SOLVED] Excel Solver Less Than or Equal To Constraint
    By shoulddt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2018, 02:53 PM
  4. Solver constraint binary fixed cost
    By tdanner1993 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-21-2016, 02:43 PM
  5. Excel Solver Constraint Help
    By BauceArj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2014, 08:47 PM
  6. Excel Solver- Ratio Constraint
    By Patriot393 in forum Excel General
    Replies: 1
    Last Post: 06-12-2011, 08:55 PM
  7. Excel Solver: Constraint Specification
    By tonisama in forum Excel General
    Replies: 6
    Last Post: 11-16-2010, 05:00 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