+ Reply to Thread
Results 1 to 5 of 5

Combine Cell data when two neighboring cells are empty

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    Combine Cell data when two neighboring cells are empty

    My conundrum is this: I ran a pitvot table to organize three columns of data (email, name, brand). The resulting data can have more than one row of data in column 'C'. For example A1 has the email adress, B1 has the person's Name, and C1 has their first brand. A2 is blank, B2 is blank, but C2 has their second brand. This continues down the entire data set, with some entries havin many many brands in the C column. I'd like to combine the brands into the cell that relates to the email address and name. So C1, for example, would contain all the brands below it separated by a comma, until a new contact is present in column A. Any help would be appreciated!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Combine Cell data when two neighboring cells are empty

    Hi gjones,

    welcome to the forum.
    Suggest you to upload a sample workbook to support your query. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Combine Cell data when two neighboring cells are empty

    Thanks! Here is a sample data set. Tab 1 is the example data, as described in my original post, with tab 2 being my desired results. As you can see from tab one, there is a varying amount of data in the brands column for each entry in email and contact. Any help would be much appreciated.


    Data_set_example.xlsx

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Combine Cell data when two neighboring cells are empty

    maybe this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    01-18-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Combine Cell data when two neighboring cells are empty

    Mike! Thank you soo much! Upon a preliminary check after running your provided code, it seemed to have worked. Many, many thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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