+ Reply to Thread
Results 1 to 18 of 18

Macro Needed to Concatenate Data in separate ROWS

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

    Smile Macro Needed to Concatenate Data in separate ROWS

    Hello,


    I need a simple macro that concatenate data in separate rows and put the result on sheet 2.
    Please note that the rows can be more than 150000



    Please see file attached (2 sheets)


    THANK YOU
    Attached Files Attached Files
    Last edited by 823; 02-21-2015 at 02:32 PM. Reason: FILE UPDATED

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Macro Needed to Concatenate Data in separate ROWS

    Hello
    I have a awesome user defined function for you
    Check if this helps...
    Change the array to suit....
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    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 ROWS

    Thanks for help me....but your function doesn't works because the results have to include both two columns (written on blue on second sheet)

    I think It is better a macro.




    Someone can code it please?
    Last edited by 823; 02-21-2015 at 03:58 PM.

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

    Re: Macro Needed to Concatenate Data in separate ROWS

    http://www.excelforum.com/excel-prog...ml#post3981768
    Change to
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Macro Needed to Concatenate Data in separate ROWS

    Or:

    Please Login or Register  to view this content.
    Kind regards, Harry.

  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 ROWS

    Quote Originally Posted by jindon View Post
    http://www.excelforum.com/excel-prog...ml#post3981768
    Change to
    Please Login or Register  to view this content.

    Sorry but It doesn't appears nothing on sheet 2 with this code;
    And with the previous thread code you coded, with a large file sometimes It doesn't appear nothing or It says "end of memory error"
    Last edited by 823; 02-21-2015 at 06:48 PM.

  7. #7
    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 ROWS

    Quote Originally Posted by HSV View Post
    Or:

    Please Login or Register  to view this content.

    also with this code using large file it says: end of memory error ....and excel freeze

    please help me

  8. #8
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Macro Needed to Concatenate Data in separate ROWS

    Make in the VBEditor an active connection to "Microsoft Scripting Runtime" checking References (Tools/References).

  9. #9
    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 ROWS

    No, I've tried another time and that code on my original file doesn't works. (...also with few rows....)



    Please see this original file I've attached at this post;
    I need a simple macro that put the result on sheet 2



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

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

    Re: Macro Needed to Concatenate Data in separate ROWS

    Quote Originally Posted by 823 View Post
    Sorry but It doesn't appears nothing on sheet 2 with this code;
    And with the previous thread code you coded, with a large file sometimes It doesn't appear nothing or It says "end of memory error"
    It should populate the result in the same sheet.

    Check 2 or 3 columns to the right of your original data.

    If it raise the error, post back.

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

    Arrow Re: Macro Needed to Concatenate Data in separate ROWS

    No, It doesn't works on large file

    Someone can code a macro that is able to do this?
    vba20.xlsx
    (I need that It put the results on sheet 2





    this is the original (cutted file) where the macro will work.
    22vba.xlsx



    THANKS
    Last edited by 823; 02-22-2015 at 05:26 AM.

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

    Re: Macro Needed to Concatenate Data in separate ROWS

    My code are both working on your file.

    It may raise the error for the bulky data, so I said post back if you get the error.

    Or maybe we are talking about different EXCEL.
    Attached Files Attached Files

  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 ROWS

    Quote Originally Posted by jindon View Post
    My code are both working on your file.

    It may raise the error for the bulky data, so I said post back if you get the error.

    Or maybe we are talking about different EXCEL.


    Please Login or Register  to view this content.

    Hello,

    Your code works on the test file;
    But If I try the macro on the original file (larger) It doesn't appears nothing on second sheet.






    thanks



    thanks
    Last edited by 823; 02-22-2015 at 09:03 AM.

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

    Re: Macro Needed to Concatenate Data in separate ROWS

    Too may characters in one cell to dump the results in one go
    Please Login or Register  to view this content.

  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 ROWS

    NOW iT WORKS VERY WELL !!

    Veery thanks jindon!!

  16. #16
    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 ROWS

    Hello jindon,


    Your code worked well:

    Please Login or Register  to view this content.



    But now I'm working with these very heavvy files (more than 150000 rows) and It says me: end of memory.


    Can you make the code works for this kind of big files??







    thank you VERY much
    Last edited by 823; 02-26-2015 at 03:15 PM.

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

    Re: Macro Needed to Concatenate Data in separate ROWS

    Too many characters again...
    Insert one line
    Please Login or Register  to view this content.

  18. #18
    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 ROWS

    Thank you!!!

+ 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 COLUMNS
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 03-11-2015, 04:34 PM
  2. [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
  3. [SOLVED] Macro needed to Concatenate data in 2 separate tables of 2 separate sheets
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-08-2015, 02:02 PM
  4. [SOLVED] Macro needed to Concatenate Data in separate TABLES
    By 823 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-08-2015, 07:42 AM
  5. [SOLVED] VBA/Macro help needed for splitting wrapped cell values into separate (bottom) rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 01:30 PM

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