+ Reply to Thread
Results 1 to 12 of 12

Concatenate data from cells by values from two columns

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Concatenate data from cells by values from two columns

    Hello everyone
    It seems that the title of the thread is somewhat strange ..
    I have sheets("Data") .. in Column B there are codes and for each code there are sub codes (numbers) and in column D there are strings that I need to concatenate ..
    In Columns F:G there are other related data to the codes as each code has a name ..
    This was the structure of Data sheet
    *********
    In Result sheet I would input Code in column F and the sub code in Column G (but the sub code could be sometimes concatenated like that 4|7 ..which mean 4 ,5, 6 and 7)
    In column H I need the results as explained in the attachment ..

    For example: in row 2 >> Code is 1 and sub code is 2|4 so I need to have 2 / 3 / 4 sub codes from Data sheet ...and put these between brackets ( )
    and after 5 spaces put the name of the code and sub code between brackets < >
    So the result would be like that

    Please Login or Register  to view this content.
    I need the solution to use arrays as original data is over 60,000 rows
    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Contributor
    Join Date
    06-02-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    104

    Re: Concatenate data from cells by values from two columns

    Check this
    Please Login or Register  to view this content.
    'Made by :- Mandeep baluja
    'https://www.facebook.com/groups/825221420889809/
    'https://www.linkedin.com/in/mandeep-baluja-b777bb88
    Add Reputation if it helped
    Attached Files Attached Files

  3. #3
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Concatenate data from cells by values from two columns

    Maybe :

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Concatenate data from cells by values from two columns

    Thanks a lot for these great and wonderful solutions
    Really great and awesome
    Thank you very much for helping me all the time

    I will apply it to the original file and if there are any notes I would tell you soon
    Best Regards

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Concatenate data from cells by values from two columns

    You are welcome, it's my pleasure.


    Regards

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Concatenate data from cells by values from two columns

    @Mr. Karedog
    I'm very sorry to disturb you again and again ..
    As for this issue It is perfect but I need another addition ..
    As for the results .. the numbers between < and > needed to be Arial font regardless the original font of the other characters
    In fact the cell font is not Arial but I just need the parts between < > to be of Arial font ..
    Thanks a lot for advanced help

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Concatenate data from cells by values from two columns

    Can it be done to have the results in the same cell with two different font type ???
    I have posted the request on this link too
    http://chandoo.org/forum/threads/for...nt-type.28885/
    Last edited by YasserKhalil; 04-14-2016 at 07:12 AM.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Concatenate data from cells by values from two columns

    Don't have time for more but to give you an idea how it works.
    On sheet Result select f.i. range H2 and run below code.
    Please Login or Register  to view this content.
    Select other cell and run code again.

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Concatenate data from cells by values from two columns

    Thanks a lot for this working method ..it is great
    As for the large data .. will I deal with the 10,000 rows using loops ..? I think it will be disaster ..
    Could font type be stored in an array or this is just a dream of mine?

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Concatenate data from cells by values from two columns

    Tried it with over 10,000 rows and it took about 1 sec. so I don't think that 's such a big disaster no ?
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Concatenate data from cells by values from two columns

    Thank you so much for this great help
    Now it is solved
    Best Regards

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Concatenate data from cells by values from two columns

    You're welcome and thanks for the rep

+ 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. How to concatenate adjacent cells based on values present in previous columns?
    By Palraj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2014, 01:01 AM
  2. Copy Values from two columns and Paste them in one (Concatenate).
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2014, 11:12 AM
  3. Concatenate 6 columns but exclude blank cells
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2014, 11:28 PM
  4. [SOLVED] Excel function or script for concatenate all values from B:B for same columns in A:A
    By Odeen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2012, 10:29 AM
  5. Concatenate values from columns and deleting duplicates
    By RandomP in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2011, 06:20 PM
  6. Concatenate cells with delimiter, new row for values after blank cells
    By testerss in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2011, 04:26 PM
  7. concatenate values two columns
    By matrixknow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2007, 08:52 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