+ Reply to Thread
Results 1 to 4 of 4

How to join a list of data from rows to a single cell.

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2007
    Posts
    4

    How to join a list of data from rows to a single cell.

    I have a list of Supervisor Codes that I need to join into a single cell.

    column A column B
    272111 2011
    272111 2056
    272111 2059
    272325 2056
    272325 2058
    275456 1125
    275456 2056

    column A New Column
    272111 2011; 2056; 2059
    272325 2056; 2058
    275456 1125; 2056

    Any help would be greatly appreciated!!

    Thanks

    Kathy

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to join a list of data from rows to a single cell.

    1) Put titles in A1:B1 for "Supervisor", "Codes"

    2) Drop the data in A2:B2 downward

    3) Put this formula in C3 and copy the cell downward:
    =IF(A2=A3, B2&";"&C3,B2)

    4) Copy column C, then do a PASTE SPECIAL > VALUES to remove the formulas.

    5) Put this formula in D3 and copy the cell downward:
    =IF(COUNTIF(A1:A2,A2)=1, "keep", "delete")

    6) Highlight columnD and turn on the Data > Filter

    7) Filter column D to show "delete" only

    8) Highlight all visible rows and delete them

    9) Delete columns C:D
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Sacramento
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to join a list of data from rows to a single cell.

    Thank you so much!! This worked

    Quote Originally Posted by JBeaucaire View Post
    1) Put titles in A1:B1 for "Supervisor", "Codes"

    2) Drop the data in A2:B2 downward

    3) Put this formula in C3 and copy the cell downward:
    =IF(A2=A3, B2&";"&C3,B2)

    4) Copy column C, then do a PASTE SPECIAL > VALUES to remove the formulas.

    5) Put this formula in D3 and copy the cell downward:
    =IF(COUNTIF(A1:A2,A2)=1, "keep", "delete")

    6) Highlight columnD and turn on the Data > Filter

    7) Filter column D to show "delete" only

    8) Highlight all visible rows and delete them

    9) Delete columns C:D

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to join a list of data from rows to a single cell.

    I've marked this thread as SOLVED for you.

    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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