+ Reply to Thread
Results 1 to 3 of 3

Creating a New dataarray from an existing datarray after calculations take place

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Creating a New dataarray from an existing datarray after calculations take place

    Folks I will have a two dimensional array (lots of rows and lots of columns) from a data dump.

    1)I first have to load a data dump into a data array.
    2)Then put the value of each row of data (example: 10,30,34,50,234,554,3334) into another sheet where a series of user-defined calculations will reference this data.
    3) Each "row" of the data array will be used in a calculation. These cells will be offset by a certain amount.
    4) I want to copy the result of the calculation and then store them all into another data.
    5) After I have populated a NEW data array, I want to paste the contents into another sheet.

    This isn't the most efficient method of doing this but I have some institutionally binding reasons for doing it this way. I have the following code, and I am hoping if you can all help me through this.

    My initial strategy: Have two loops. for each row of the array dimensions (There will be thousads) take the contents and place them in another

    Please Login or Register  to view this content.


    Any help would be much much appreciated.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Creating a New dataarray from an existing datarray after calculations take place

    it's more simple, see http://msdn.microsoft.com/en-us/libr...ice.10%29.aspx at the bottom.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Creating a New dataarray from an existing datarray after calculations take place

    Patel45,

    Thank you for the suggestions. The original array is set. As per the link you provided, which i referenced earlier, I have set the initial data array. The issue s all of the other components:

    Namely, the new data array (the result of the calculations), will not have the same dimensions as the original data array. so for instance the original data array could have 5000 rows and 20 columns but the resultant calculations could product 5000 rows and 50 columns. The calculations will be user defined and will change. Thats why the loop needs to be set but the calculations can be done later.

    If you have any suggestions for taclking that issue

+ 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. Help creating a Combo Macro to place data into another cell
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2012, 08:15 AM
  2. Creating conditional calculations
    By visionwindowfilms in forum Excel General
    Replies: 8
    Last Post: 12-18-2010, 05:12 PM
  3. Automate Excel report to place certain data into existing report?
    By Craig Harrison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2006, 09:00 AM
  4. [SOLVED] Creating Calculations Within a Field
    By MinhPhan in forum Excel General
    Replies: 8
    Last Post: 03-30-2005, 08:06 AM
  5. Creating Add-in with worksheet calculations
    By pgalmen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2005, 09:09 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