+ Reply to Thread
Results 1 to 7 of 7

how to pair/concatenate values of first column with each other

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    how to pair/concatenate values of first column with each other

    we want to add/concatenate the values of first column and show the result in next column. The problem is fully explained in the comment section of the sheet attached. But still if you are having in getting the problem, then plz let me know
    Attached Files Attached Files

  2. #2
    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: how to pair/concatenate values of first column with each other

    You could do it with formula, but probably much easier is short macro similar to this one (see also attachment - there is a bit quicker version, but results are the same):

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kaper; 02-04-2014 at 06:30 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: how to pair/concatenate values of first column with each other

    Maximum of 5 Input data values?

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: how to pair/concatenate values of first column with each other

    no it has numerous values...i added only 5 to look it easy...........

  5. #5
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: how to pair/concatenate values of first column with each other

    It seems the best fix has already been compelted and done for you.

  6. #6
    Registered User
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: how to pair/concatenate values of first column with each other

    hey thnx, it really worked for me. but can u plz modify it to have desired ouput as in new attached sheet.......plz let me know if you have any other query.
    Attached Files Attached Files

  7. #7
    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: how to pair/concatenate values of first column with each other

    OK, I am doing next step, but still there is a room for you to DIY
    have a look on the attached workbook and two macros - Test3 is as you described in the sample but I do think that what you really need is macro test2 which generates more output. (my way ;-) )

    Please Login or Register  to view this content.
    As you can see - it works with 2,3 and 4 pieces sets - you can easily prepare 5 and more yourself based on the above and clearly marked places when it was necessary to make changes. If you indeed need "your way - it will be easier to do. If "my way", notice that new variable is used as a most inner loop each time.
    Attached Files Attached Files

+ 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. Replies: 7
    Last Post: 12-07-2013, 02:33 PM
  2. [SOLVED] Concatenate the values in a column one by one with multiple entries in another column
    By Pavan Renjal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2013, 08:13 AM
  3. Concatenate values in a column based on value of previous column
    By CountySurveyor in forum Excel General
    Replies: 3
    Last Post: 10-02-2012, 06:38 PM
  4. Compare cells in column 1 and concatenate values in column 2
    By sharmaremuk in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-20-2011, 09:04 PM
  5. Replies: 2
    Last Post: 01-15-2006, 05:10 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