+ Reply to Thread
Results 1 to 8 of 8

Make solver go through certain numbers (used in INDEX-MATCH)

Hybrid View

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Make solver go through certain numbers (used in INDEX-MATCH)

    Hello,

    I have this problem. I need solver to go through certain amount of numbers, for example from 1 to 3 (integer). These numbers are tied to INDEX-MATCH function as a lookup value in MATCH. It searches in table array, which consists of 2 rows. In 1st row there are numbers from 1 to 3, and in second any other numbers. INDEX-MATCH function gives respective value depending on lookup, obviously. Now as i mentioned, i need solver to go through these numbers (1 to 3) and then determine under which number objective cell was maximum (result of INDEX-MATCH function).
    I made solver model for this, but it can't find feasible solution. I think it is because solver doesn't understand that i need it to go only through certain integer numbers, even though i correctly define constrains for variable cells.
    Is there a way to correct this, or maybe use any other tactic?

    I tried explaining as best as i could, and for more clarity, I'll attach sample workbook. There are 2 sheets: simple and advanced, which just omits invalid results for lookup value.

    Thanks.
    Attached Files Attached Files
    Last edited by Mtes; 05-07-2012 at 03:41 AM. Reason: Forgot to attach workbook.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Hi Mtes,

    Welcome to the forum.

    Please attach a sample workbook. Thanks

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Oh, sorry, forgot to attach.

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Anyone has any ideas, please?

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Hi Mtes,

    Refer your attachment.. When I entered 3 in C2.. it fetched 78 in cell A6.. which is maximum number in row 10.. I guess everything is ok.. else explain what value you are looking for?
    Do you need the 3 instead of 78 because 3 is having maximum number(78) under it? or what ? Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    05-07-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Assume I don't know this number 3, so I can't enter this manually. I need solver to find this number for me. This is just example spreadsheet. My original is far more complex, with around 40 different "scenarios" (instead of just 3) and far more complex objective than just Max.
    So my goal is that solver should show me the number under which the objective cell becomes Max.

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Okay.. in order to obtain 3, you could use below formula:-

    =OFFSET($A$9,0,MATCH(MAX($A$10:$C$10),$A$10:$C$10,0)-1)


    Test(9).xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    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,788

    Re: Make solver go through certain numbers (used in INDEX-MATCH)

    Perhaps you could set up solver in a different way?

    Based on your sample data I don't see why you need to use INDEX and MATCH functions. Perhaps you need to upload a file with more data?

    I've set up a different solver model on the "Advanced" sheet. Have look and see if this could be of help.

    Alf
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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