+ Reply to Thread
Results 1 to 3 of 3

Select value from list so that difference is minimized

  1. #1
    Registered User
    Join Date
    03-14-2016
    Location
    Germany
    MS-Off Ver
    Office 2013
    Posts
    15

    Question Select value from list so that difference is minimized

    Hi guys,

    another day another problem.

    I'm trying to find a way to mimic the Excel goal seeking function for the following problem:

    Column A = 9.000.000
    Column B = 3%
    Column C = 1%
    Column D = ???
    Column E = (B / C) * D

    Goal seeking: select from a list of values (in 250.000 increments(0, 250.000, 500.000, ....), for instance given in column F) the value that minimizes the difference between Column A and Column E

    I hope you can help me with this one. Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Select value from list so that difference is minimized

    In D2
    =E2*C2/B2+250000
    In E2
    =MIN(ABS(B2/C2*INDEX($I$1:$I$50,)-A2))
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-14-2016
    Location
    Germany
    MS-Off Ver
    Office 2013
    Posts
    15

    Re: Select value from list so that difference is minimized

    Thanks ChemistB,

    actually I didn't even need solver or iteration for my problem --> C / B * A

+ 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. Replies: 5
    Last Post: 04-20-2014, 08:39 PM
  2. Replies: 24
    Last Post: 09-06-2005, 03:05 PM
  3. Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Replies: 0
    Last Post: 09-06-2005, 01:05 AM

Tags for this Thread

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