+ Reply to Thread
Results 1 to 4 of 4

Want an automatic System that should find those Input values with Maximum Output Result

  1. #1
    Forum Contributor
    Join Date
    07-10-2022
    Location
    USA
    MS-Off Ver
    2021
    Posts
    190

    Want an automatic System that should find those Input values with Maximum Output Result

    Hi,

    In cells H10, I10 and J10, I have three input values. The output result is shown in cell I14. I want to find those input values for which the result in cell I4 is maximum. I know that without defining the Limits of input numbers, the code will give infinite values of inputs and will keep on running for an infinite time. So, I have made limitations for inputs numbers which are described in Column B and C.
    At the Beginning:
    In the first Run, all 3 inputs will be according to cells B10=1 (Input 1), B11=0.01 (Input 2) and B12=1 (Input 3). So, in the first run code will write H10=1, I10=1 and J10=1. Then it will remember this output value.
    In the second Run, only input 1 will increase while the input 2 and input 3 will remain unchanged. In column D from cell D10 onward, I have written Values with respect to which input values has to be increase after every Code Run. For input 1, I have written interval of 1, so, in the second run, its values should be increased by 1 and then it should be analyzed. So, in the second run code will write H10=2, I10=1 and J10=1. Then it will see if the output result is bigger than the previous one or not. If these inputs give higher output value than the previous then it should write these input values in N8, O8 and P8. And so on.
    This code will keep on running by changing of input 1 only until it reaches its last limit 100. After this input 1 should be taken as 1. Now input 1 and input 3 will remain unchanged. Input 2 will change only by values of 0.01 (as shown in cell D11). This will keep on going until input 2 will reach its end limit of 100.
    Then after this, value of input 1 should be increased by 1, now input 1 will become 2. Now input 1 and input 3 will again remain unchanged. Input 2 will change only. And so on,

    In short, I want to find those top 10 inputs combinations at which these inputs give highest output result in cell I14.
    I do not know anything about VBA Coding. If this task is possible with VBA then please do this. If not then please suggest me a way with which I can do this task.

    Please see attached sample file for more clarification
    I am using Excel 2021

  2. #2
    Forum Contributor
    Join Date
    07-10-2022
    Location
    USA
    MS-Off Ver
    2021
    Posts
    190

    Re: Want an automatic System that should find those Input values with Maximum Output Resul

    Hi, Can anybody please solve my issue?

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,222

    Re: Want an automatic System that should find those Input values with Maximum Output Resul

    I don't know if you haven't thought something through, or rather, the example presented is not representative. In any case, for formula
    Please Login or Register  to view this content.
    the top 10 results are Input1 from 91 to 100 (with a step of 1), when Input2=0.01 and Input3=1.

    Artik

  4. #4
    Forum Contributor
    Join Date
    07-10-2022
    Location
    USA
    MS-Off Ver
    2021
    Posts
    190

    Re: Want an automatic System that should find those Input values with Maximum Output Resul

    Hi Sir Artik,

    I used this formula in this attached file as a sample only. If code works on it. Then i will use this code on my original file with very much complicated formulas in it.

+ 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. VBA find unique values from input multiple column to output new column
    By lotto009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2020, 12:50 AM
  2. Replies: 5
    Last Post: 02-11-2020, 08:10 AM
  3. Find maximum output of a formula as long as another variable is positive
    By stellan76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2016, 03:50 PM
  4. Need output result for input
    By satyendra21 in forum Excel General
    Replies: 5
    Last Post: 11-18-2015, 08:25 AM
  5. Conditional IF in VBA when using the output/cancel/error result of an input box
    By wardpa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 04:57 PM
  6. Replies: 6
    Last Post: 08-11-2010, 01:34 PM
  7. Database sheet need result in input & output
    By hasin in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-10-2008, 01:30 PM

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