LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Paasing Values from one Array to another

hi there,

I am running a spreadsheet model which generates 100's of result values.

I have written code to run the model for 50 different sets of inputs,
therefore I have 50 different sets of results.

I have created an array called EngineIRPA which I populate with these
results...say for simplicity it is a 5x5 array.

Now I want to pass the values in the EngineIRPA array to another Array
called Results which will be big enough to hold the results of all 50 runs ie
50 x 5x5 values (say the array is 50x25). I will then write these values to a
separate worksheet called results...

so for example I want to write the 1st row of values in EngineIRPA to the
first 5 'spaces' in Results (ie row 1 columns 1 to 5) and then I want to
write the 2nd row of values in EngineIRPA to the second block of 5 spaces in
Results (ie row 1 columns 5 to 10)....then when I recalculate with new inputs
I will pass the new results to EngineIRPA, retain the current values in
Results and then append Results with the next set of values from
EngineIRPA...

does this make sense what I'm trying to do??

I have it working with passing a single value between the arrays eg

Results(x,1) = EngineIRPA(1,1) but I cannot seem to pass blocks of data...

The 'x' above is the counter which runs each set of inputs through a model.
I could just record a macro which c&ps the values, however I would like to
use arrays avoid multiple read/writes and speed up the model.

Cheers
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array: Counting multiple values within array Trilux_nogo Excel Worksheet Functions 4 April 16th 07 03:12 AM
To get values into an array Darren1o1 Excel Worksheet Functions 7 April 14th 06 11:14 PM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
Convert values in a variant array to integer values Graham McNeill Excel Programming 1 November 13th 04 12:47 AM


All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"