+ Reply to Thread
Results 1 to 17 of 17

Macro needed to Concatenate Data in separate TABLES

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Macro needed to Concatenate Data in separate TABLES

    Hello



    I would need a macro that can do this show in the file I've attached.
    I need a macro needed to concatenate data in separate tables......



    Very thanks for help
    Attached Files Attached Files
    Last edited by 823; 02-06-2015 at 12:41 PM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Macro needed to Concatenate Data in separate tables

    Try this:-
    Results start "F1"
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Macro needed to Concatenate Data in separate tables

    Duplicate thread, one response in each!

    Why did you post the same question again 15 minutes after your first thread?

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate tables

    PLease look at the titles: they are similar but not the same!
    Last edited by 823; 02-06-2015 at 12:42 PM.

  5. #5
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate tables

    Quote Originally Posted by MickG View Post
    Try this:-
    Results start "F1"
    Thank you;
    But it seems not works....
    I made something wrong?

    I open the file and what I have to do?


    thanks
    Last edited by 823; 02-06-2015 at 12:42 PM.

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Someone can help me please?

    thanks

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Macro needed to Concatenate Data in separate TABLES

    Try
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Quote Originally Posted by jindon View Post
    Try
    Please Login or Register  to view this content.

    It works, Thanks!

    But I need that if there's data at the right or at the left of the cells of first "table" the data will be simply reported....
    Please see file attached....
    On red color the data already present;
    On blu the macro result;
    On yellow the data that should be, but missing;


    thank you!
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Macro needed to Concatenate Data in separate TABLES

    You should upload the second file in the first place.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Smile Re: Macro needed to Concatenate Data in separate TABLES

    Quote Originally Posted by jindon View Post
    You should upload the second file in the first place.
    Please Login or Register  to view this content.

    Yes it Works!

    But I would need to undestand what I have to change if the columns are differents;
    I look the macro you posted, but I don't understand what i have to change if i change need to change column.....I try to explain me better:

    For Ex.
    Please see this file attached;

    I need that the macro will copy the D column (yellow) of the "second table" in the C column of the "first table" (yellow) -always sorted by ID- leaving totally unaffected all data present in the column of the fisrt table previous and next.
    So I need to understand what I have to modify in the macro If I have to copy for ex. column E of "second table" (purple) into column G of "first table"(purple).



    Thanks
    Attached Files Attached Files
    Last edited by 823; 02-07-2015 at 04:52 PM.

  11. #11
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Someone is able to write me a macro quite simple to edit and change parameters?

    Ps. The macro above runs well but I don't know what I have to change if i need to switch ex. To work on purple columns

    THANKS FOR HELP
    Last edited by 823; 02-07-2015 at 05:09 PM.

  12. #12
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro needed to Concatenate Data in separate TABLES

    Ok my friend

    You asked for a simple macro.

    Well this is not simple.

    But it will find your two tables in your spreadsheet and merge them into a new table at the bottom.

    All you need to make sure is that the top left hand corner of the table contains the word ID.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 02-07-2015 at 05:45 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  13. #13
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Thanks Mehmetcik
    ....but It doesn't solve my problem....

    I think I explained bad.....so It seemed more complicated than It is.....


    Please forget all above


    -> Look at this new file attached below.

    I need a macro that let me to put the "yellow data" into the green column.
    I need also to understand what I have to change in the macro If I need to put the yellow data in the blue column instead of the green.


    The results It is better If they will copy directly into the first table, but If it is too complicated, It is ok also a new join-table result.


    that's all!


    THANKS
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro needed to Concatenate Data in separate TABLES

    I will look at that for you tomorrow.

    But How do I know that the data from table 2 column A needs to go to Table 1 column 1?

    Do I need to test to see if it is empty? Or do I assume that it will be empty?

  15. #15
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Hello,

    But How do I know that the data from table 2 column A needs to go to Table 1 column 1?
    Sorry but.....I don't have understood well your question anyway:
    The row will be sorted by ID number --- and I decide myself that the data from table 2 column A need to go to Table 1 column 1....

    or if It is easyer to code we can do that the data will be copied in the first full white column on the right of the first table or we can do that the columns where the data will be read and copied have the same name; like you prefer.

    Do I need to test to see if it is empty? Or do I assume that it will be empty?
    It will be ALWAYS empty (no need to do any test to check If It is empty)


    Thank you
    Last edited by 823; 02-07-2015 at 08:16 PM.

  16. #16
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro needed to Concatenate Data in separate TABLES

    Try This:

    If this meets your requirements we can copy that to a clean sheet and delete the old sheet.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro needed to Concatenate Data in separate TABLES

    Thanks,

    but I've discoverd I had a problem with copy+paste excel comand; probably because my data exeed excel copy+paste limits.

    So to avoid all this problems It is better I work in 2 separte sheets.

    ....I open another thread here, where I explained and try to semplificate the operation at maximun:

    http://www.excelforum.com/excel-prog...ml#post3982389



    thanks

+ 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] Macro Needed to Concatenate Data in separate ROWS
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-21-2015, 11:35 AM
  2. Macro to separate, concatenate, and change sheet names
    By JGSmith in forum Excel General
    Replies: 16
    Last Post: 05-04-2014, 04:57 AM
  3. Help needed in using concatenate function in Excel macro
    By bintoca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2013, 09:50 AM
  4. Merging Data from Separate Tables
    By william. in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-02-2012, 05:07 PM
  5. Help needed to create Macros to search and concatenate data.
    By praneybehl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2010, 03:06 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