+ Reply to Thread
Results 1 to 10 of 10

How to concatenate values belonging to same text group?

  1. #1
    Forum Contributor daksh1981's Avatar
    Join Date
    04-15-2009
    Location
    India
    MS-Off Ver
    2003 & 2007
    Posts
    110

    Smile How to concatenate values belonging to same text group?


    Hi,
    I am attaching a sample sheet with my query. In the attached sheet the result which has highlighted with color is the manual task, I want a macro to do this task automatically.
    I am just concatenating the text of same group in column “E”.
    Please let me know in case you need any further clarification on this.
    Thanks for the help & support.
    Attached Files Attached Files
    Last edited by daksh1981; 07-06-2010 at 08:40 AM. Reason: Solved...

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to concatenate values belonging to same text group?

    The kind of solution your requesting can quickly get out of hand when there are many tasks for the same project. I'd recommend using a Pivot Table to summarize the data. The results will be more organized and easier to read.

    See the attached file for a peek at how it might work for you.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor daksh1981's Avatar
    Join Date
    04-15-2009
    Location
    India
    MS-Off Ver
    2003 & 2007
    Posts
    110

    Re: How to concatenate values belonging to same text group?

    Thanks Ron for such a quick reply, but in my project I need a macro for doing this as I will print the output data in a shape after this concatenation.
    Last edited by daksh1981; 07-02-2010 at 11:57 AM. Reason: Incorrect word used hence edited it...

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How to concatenate values belonging to same text group?

    Hi daksh1981;
    This will do all rows from 2 down in Column D, not just 2 to 10
    It will look for matching values in Column A, even if they are not all together.
    I put in a little extra formatting of Column E to make it easier to read.
    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How to concatenate values belonging to same text group?

    You could use this UDF.
    In E2, put

    =ConcatIf(A:A, D2, B:B, ",")

    and drag down.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  6. #6
    Forum Contributor daksh1981's Avatar
    Join Date
    04-15-2009
    Location
    India
    MS-Off Ver
    2003 & 2007
    Posts
    110

    Re: How to concatenate values belonging to same text group?

    Thanks foxguy and mikerickson, this is looking awesome...
    Let me try this & I will revert with the status.

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How to concatenate values belonging to same text group?

    After deleting the first empty row:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor daksh1981's Avatar
    Join Date
    04-15-2009
    Location
    India
    MS-Off Ver
    2003 & 2007
    Posts
    110

    Re: How to concatenate values belonging to same text group?

    Thanks Ron,foxguy,mikerickson and snb this is really awesome I have got the solution. Thanks again for your great effort & support. God bless you all.

  9. #9
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How to concatenate values belonging to same text group?

    You're welcome. I'm sure everyone involved would appreciate you rating their answers also.

  10. #10
    Registered User
    Join Date
    01-14-2014
    Location
    brl
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: How to concatenate values belonging to same text group?

    Question on the below code. I want to match with wild characters. for instance i have an earlier Countif.....=COUNTIFS(A95:A100,LEFT(A95:A100,6)&"*") which returns 6
    want to do the same here, but receiving blanks when applying the wild character "*" in this formula... =concatif(A95:A100,LEFT(A95:A100,6)&"*",E95:E100," "). Best I can figure is its looking for that left value plus a "*" at the end.

    PS this is my first post so sorry if I did it wrong.



    Quote Originally Posted by mikerickson View Post
    You could use this UDF.
    In E2, put

    =ConcatIf(A:A, D2, B:B, ",")

    and drag down.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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