+ Reply to Thread
Results 1 to 4 of 4

Solver with 2 decimal places

  1. #1
    Registered User
    Join Date
    08-15-2021
    Location
    Madrid
    MS-Off Ver
    Office 2013
    Posts
    2

    Solver with 2 decimal places

    I need to search for a target, using multiple figures located in different cells.
    For instance:

    INICIO
    Uds. PVP Total
    1,00 142.500,20 142.500,20
    50,00 84,52 4.226,00
    52,00 125,30 6.515,60
    153.241,80

    I would like to find, using Solver, a solution that changing the number of units (with 2 decimal places) would give me the final solution of: 155.201,55

    All cells are rounded to 2 decimal places.

    As you can see, there is a solution:

    Uds. PVP Total
    1,01 142.500,20 143.925,20
    52,25 84,52 4.416,17
    54,75 125,30 6.860,18
    155.201,55

    The proposed solution of solver is to put in the third column the value:

    $C$11 Uds. 67,64046289 0 0 0 1E+30

    This solution is not valid for me as it uses more than 2 decimal places.

    In the solver options I have set the precision with the value 0.01 as well as the convergence.

    Any ideas, to make it work?

    Thanks a lot.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,859

    Re: Solver with 2 decimal places

    Solver is not going to round it's solution for you. Is there some reason you cannot round Solver's solution after Solver finds it? When Solver finds 67,64046289 as the solution, can you round that to 67,64 after Solver has finished?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-15-2021
    Location
    Madrid
    MS-Off Ver
    Office 2013
    Posts
    2
    Quote Originally Posted by MrShorty View Post
    Solver is not going to round it's solution for you. Is there some reason you cannot round Solver's solution after Solver finds it? When Solver finds 67,64046289 as the solution, can you round that to 67,64 after Solver has finished?
    not because you would need the exact final result, including decimals

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,859

    Re: Solver with 2 decimal places

    I'm not sure I understand the concern. Could you perhaps explain the problem again? Perhaps a sample file illustrating the problem would help (see yellow banner at top of page for instructions on uploading a sample file)?

+ 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. Adusting decimal places based on greatest number of places in a series
    By anelson87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2022, 01:05 PM
  2. Solver - decimal places
    By Sean Thomas in forum Excel General
    Replies: 7
    Last Post: 12-07-2018, 02:01 PM
  3. Replies: 4
    Last Post: 01-01-2017, 07:38 PM
  4. Replies: 2
    Last Post: 12-29-2013, 08:37 PM
  5. [SOLVED] Calculating decimal places in a non decimal format (ie sixes not tens)
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 08:58 AM
  6. Paste two decimal number in excel without extra decimal places appearing
    By jeffery_frick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 07:49 PM
  7. [SOLVED] FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT.
    By SUKYKITTY in forum Excel General
    Replies: 3
    Last Post: 07-06-2005, 09:05 AM

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