+ Reply to Thread
Results 1 to 5 of 5

Obtaining set of outputs for multiple sets of inputs

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Mumbai
    MS-Off Ver
    2016
    Posts
    2

    Lightbulb Obtaining set of outputs for multiple sets of inputs

    I've written a certain algorithm which takes say 10 inputs (in 10 adjacent cells), does some calculations and provides say 12 outputs. For testing the algorithm, I am able to specify each combination of these 10 inputs, get the 12 outputs and copy them in a different worksheet, but I need to run say 100 different combinations of these 10 inputs. If I can provide these inputs in a 10 columns*100 rows format, is there a way to get output in 12 columns*100 rows format ?

    Thanks in advance.

    Raj

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,274

    Re: Obtaining set of outputs for multiple sets of inputs

    Let's say that your algorithm takes the values from cells A2:J2 (10 cells in one row), and outputs values into cells K2:V2 (12 cells of the same row), and that your 100 different combinations are in cells A5:J104, and your algorithm is run by the macro "RunAlgorithm". Then run a macro like this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,378

    Re: Obtaining set of outputs for multiple sets of inputs

    If I understand what you are doing, a data table can also do this. See example here: https://www.excelforum.com/excel-for...l-formula.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    09-30-2019
    Location
    Mumbai
    MS-Off Ver
    2016
    Posts
    2

    Re: Obtaining set of outputs for multiple sets of inputs

    Thanks Bernie. My algorithm is currently not in a macro, it's across some 30 columns and 50 rows. Any chance I can make this work without porting it into macro ?

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,274

    Re: Obtaining set of outputs for multiple sets of inputs

    Sure - just have the output arranged into a 12 cell row and use that address in place of the K2:V2 that I used.

+ 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. [SOLVED] VLOOKUP with possible multiple inputs/outputs
    By ormerods in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-05-2018, 08:52 AM
  2. [SOLVED] Simeltaneous XIRR outputs with multiple inputs
    By djh30 in forum Excel General
    Replies: 2
    Last Post: 09-29-2016, 04:30 PM
  3. [SOLVED] how to have multiple inputs and outputs?
    By Sticky_Frogg in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 07-22-2015, 12:51 PM
  4. IF with multiple inputs and outputs
    By zdej in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2013, 05:52 PM
  5. [SOLVED] Display multiple outputs based on combination of multiple inputs
    By jtilley in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2012, 09:03 PM
  6. Help with multiple inputs and outputs
    By FinanceGuy in forum Excel General
    Replies: 1
    Last Post: 04-28-2010, 10:04 PM
  7. multiple inputs, multipul outputs (part 2)
    By rjmckay in forum Excel General
    Replies: 3
    Last Post: 06-11-2006, 02:30 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