+ Reply to Thread
Results 1 to 4 of 4

Concatenating different columns from different rows

  1. #1
    Registered User
    Join Date
    08-30-2015
    Location
    chicago
    MS-Off Ver
    2007
    Posts
    32

    Concatenating different columns from different rows

    All,

    I have created a sample excel file attached here.

    I have provided the input in worksheet "Sheet1" and required output in worksheet "Output".

    Could I get some assistance for creating a macro to produce the given output.

    Thank you in advance.
    KK
    Attached Files Attached Files
    Last edited by macrolearnerkk; 09-03-2015 at 09:59 PM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Concatenating different columns from different rows

    You could use this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Concatenating different columns from different rows

    I faced some network problems, and could noyt post it. Anyway, it is a bit different approach, so will post now.


    original message:
    ------
    Probably real data is a bit better structured, but may be not.
    The only difference is that in your sample output sheet you had 2 first entries finished with space (not "ab cd ef" but "ab cd ef ") - I assumed program shall not work like that. So the proposed code is:
    Please Login or Register  to view this content.
    Try it.
    Attached Files Attached Files
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    08-30-2015
    Location
    chicago
    MS-Off Ver
    2007
    Posts
    32

    Re: Concatenating different columns from different rows

    Antonio, Kaper, I really appreciate your time. Thank you both.

+ 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] VBA - combine matching rows and concatenating corresponding rows into one column
    By mjcanty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2015, 12:47 PM
  2. Replies: 1
    Last Post: 04-09-2015, 08:30 PM
  3. VBA For Concatenating Dynamic Rows and Columns
    By imark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2014, 02:05 PM
  4. [SOLVED] Concatenating two columns and reversing after concatenating the result
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2014, 09:35 PM
  5. Concatenating Two Columns
    By nujwaan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2009, 01:44 PM
  6. Concatenating more than 30 Columns at one go
    By c.vaibhav in forum Excel General
    Replies: 4
    Last Post: 05-11-2009, 08:48 AM
  7. Concatenating columns
    By ArtisanInternet in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2008, 07:10 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