+ Reply to Thread
Results 1 to 6 of 6

formula to combine multiple cells into single cell where reference is same

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    39

    formula to combine multiple cells into single cell where reference is same

    Need to combine cells where the reference is the same.
    So in column A, have references which can be repeated multiple times ( number of repetition is not determinable). Need to combine the values from Column B, where the values in column A are the same.
    Example has been shown below.


    Original:

    A B

    1.1 |this is it
    1.1 |there we go
    1.1 |what
    1.2 | what is going on
    2.3 | there
    4.5 |what is it


    Result:

    1.1 |this is it / there we go /what
    1.2 | what is going on
    2.3 | there
    4.5 |what is it

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to combine multiple cells into single cell where reference is same

    Are you open to using a VBA function to do this?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: formula to combine multiple cells into single cell where reference is same

    Any thing that will get the job done..

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: formula to combine multiple cells into single cell where reference is same

    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    05-01-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: formula to combine multiple cells into single cell where reference is same

    That is too complex and VBA needs to be updated manually.. Number of rows is a lot and would be more effort to change the script to have all details in the column A.
    Can you please suggest a new VBA or a method to use formula to achieve the result??

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to combine multiple cells into single cell where reference is same

    Copy the code at the link below and paste it into a general module:

    http://www.excelforum.com/showthread...=1#post3096647

    Then, to use it on the worksheet:

    Data Range
    A
    B
    C
    D
    E
    1
    -----
    -----
    -----
    -----
    -----
    2
    1.1
    this is it
    1.1
    this is it / there we go / what
    3
    1.1
    there we go
    1.2
    what is going on
    4
    1.1
    what
    2.3
    there
    5
    1.2
    what is going on
    4.5
    what is it
    6
    2.3
    there
    7
    4.5
    what is it


    Enter this array formula** in E2:

    =concatall(IF(A$2:A$7=D2,B$2:B$7,"")," / ")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down as needed.

    You can easily generate the list of unique entries from column A to column D using advanced filter:

    http://contextures.com/xladvfilter01.html#FilterUR

+ 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. VBA to combine texts from cells to a single based on another cell value
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2013, 10:05 AM
  2. [SOLVED] How do I combine multiple lines of information into a single cell, separated by commas?
    By ilostar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2012, 11:48 AM
  3. Combine 5 reference cells into a formula
    By imran91 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-09-2012, 02:33 AM
  4. Combine Multiple cells into Single Cells
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 05:41 AM
  5. Replies: 3
    Last Post: 01-28-2011, 03:19 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