Model Output into a Table

nhbcai

New Member
Joined
Jun 28, 2011
Messages
18
I have created a two input variable/one output variable model in an Excel Spreadsheet.

What I would like to do is use this model to output a table of data using a range of input values for each of the two inputs.

Is there some way I can automate the creation of such a table?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are you asking (a) how to create the table of input values or (b) how to process them through the model?

If (a) then I think we need more information about what the permissible values are and how they should be combined.

If (b) then you need to use VBA to place the values into your model one set at a time, wait for the model to finish calculating the output for that set of inputs, then copy the output into a table of outputs. The code would be dependent on where the input and output tables are and where the model's input and output cells are.

One other thing which you might consider if you've not already thought of it is: rather than build model in the worksheet using Excel formulae and drive the generation of the output table using VBA, you could code the model in VBA as a UDF (user-defined function) and then call it from your worksheet as the third column of your table (the other two columns being your input values).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,822
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top