+ Reply to Thread
Results 1 to 19 of 19

Need help with Rounding numbers with no decimals using Excel 2007 Solver

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Hey guys,

    running into a problem with solver. i run the solver, and it returns numbers that are not rounding, which dramatically affects my results.

    Basically what the solver is doing is looking for the cheapest mix of cell phone plans, according to the minutes used, and 5 different plans, but because it returns in fractions of a number, the results are skewed.

    i've attached.

    also, anyone know how to get the solver add-in in english, mine comes up in french, not a big deal though.
    Attached Files Attached Files

  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: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Solver > Options -- make the Precision value smaller.

    You should also add an integer constraint to F12:F16, and change the constraint on F17 to be >= B4
    Last edited by shg; 03-21-2012 at 11:48 AM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    how do i add an integer constraint to F12:F16? sorry, my solver is in french.

  4. #4
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Take a look at this one:

    SolverWorking.xlsm
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  5. #5
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    hey Pich,

    when i run the macro i get a compile error: can't find project or library, then it stops as 'solver reset'

  6. #6
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    could it be because i'm using 2007, and you are using 2010?

  7. #7
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Give me a minute

  8. #8
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Try this one please:

    SolverWorkingV2.xlsm

    100th post lol

  9. #9
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    AHH, still not workin'.

    hmmmmm, stops at the third line

  10. #10
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Please do the following:

    In VBA window, with the workbook you made loaded, open the object browser (F2) and look for VBA_Functions under classes and double click on it. Take an image of the "Members of VBA_Functions" screen and upload it so I can see it.

  11. #11
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    I think this problem is actually related to the fact that your solver is in french... You could also try looking at this. Maybe changing it to english will do the trick. By the way, if I were you I'd try the last of the suggested fixes.

    Pleaso do what I asked in the previous post if you don't want to change Solver to english.

  12. #12
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    hey. i don't have VBA_Functions under classes?

  13. #13
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    Did you turn on solver?

  14. #14
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    I mean is solver added to references?

  15. #15
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    How can i check?

  16. #16
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    In vba window tools--->references--->check solver box (will be among the first listed)

  17. #17
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    it's not there

  18. #18
    Registered User
    Join Date
    12-02-2011
    Location
    toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    it says;

    MISSING: SOLVER.XLA

  19. #19
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Need help with Rounding numbers with no decimals using Excel 2007 Solver

    It seems you are having problems with the instalation of the Solver add-in. To solve it go to the link i had provided a few posts back. Once you have that done, your issue should be solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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