+ Reply to Thread
Results 1 to 4 of 4

Concatenate multiple cell values based on matching adjacent cells

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    2

    Exclamation Concatenate multiple cell values based on matching adjacent cells

    Hi,

    Trying to find the best way to concatenate varying amount of cells based on matching adjacent cell values.
    Please see sample data and required output attached. The unique account numbers will already be on Sheet2, so only need the formula/function to populate the required output column.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Concatenate multiple cell values based on matching adjacent cells

    Hi

    Easiest way is with a User Defined Function.

    Open a general module and enter the code
    Please Login or Register  to view this content.
    Then invoke (in your example file - update the ranges as required) as
    =myfunc($A$4:$A$11,D4)

    HTH

    rylo

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Concatenate multiple cell values based on matching adjacent cells

    Hoping that this will help

    It is automated to input on the column B
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Concatenate multiple cell values based on matching adjacent cells

    Thanks very much rylo and rcm!
    Both methods worked perfectly.
    Now it's time for me to study and undertand how they work :-)

+ 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