+ Reply to Thread
Results 1 to 3 of 3

copy dynamic data from one table to another one with 2 conditions

  1. #1
    Registered User
    Join Date
    05-08-2014
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    2

    copy dynamic data from one table to another one with 2 conditions

    Hello excel/vba-experts,

    I have a table, which collects values (return rates) calculated by different sensitivity scenarios (e.g. if operational costs are 1% higher, my project return rate shrinks and this new value is automatically saved in this table). Let's call it Input Table covering for example (A1:C5). It is dynamic: Every time I choose a sensitivity parameter (1%-10%), I get a new result in this matrix and the previous result is gone (it's a simple function "if sensitivity = 1%, then A1 = return rate" and so on for each cell in this Input Table).

    Now I want every time I get a new result in this Input Table to decide, if I want to copy this new result into my project overview table, lets call it Output table, e.g. (D1:F5). Therefore I created a button "transfer the result" and I'm trying to program following macros, which finds this new result and transfers only it, without overwriting previously transferred results:

    Copy the values of cells in the Input Table (A1:C5) into the according cells of Output Table (D1:F5) when:
    1) the Input Table cell has a value (is not blank any more)
    2) the according Output Table cell has no value yet.

    I am a very beginner and I wrote my code using different forum posts but it's not completely functioning:

    Please Login or Register  to view this content.
    Thank you in advance for corrections or new solutions (there are many ways to transfer/copy, I just need a functioning one!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: copy dynamic data from one table to another one with 2 conditions

    This is one method.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 05-08-2014 at 01:52 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-08-2014
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: copy dynamic data from one table to another one with 2 conditions

    Dear AlphaFrog,

    thank you very much for your reply and solution, I'll try it tomorrow in the office, but I'm sure it will be fine!

    Best regards from Berlin,
    Alexandra

+ 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. Dynamic Comparitive Matrix Table with Data validation conditions
    By santhosh51 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2013, 09:21 AM
  2. Replies: 1
    Last Post: 07-08-2013, 09:20 AM
  3. Macro to copy a table and paste in another table (based on certain conditions)
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2013, 01:14 PM
  4. Dynamic table formula for sorting data to another table dynamic
    By 650dozer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2012, 07:22 PM
  5. using a dynamic reference cell to copy a range of cells within a data table
    By mcash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2010, 10:22 AM

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