+ Reply to Thread
Results 1 to 4 of 4

Merge Cells Depending on whether the next column is identical

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    LIC, NY
    MS-Off Ver
    MS office for MAC
    Posts
    2

    Merge Cells Depending on whether the next column is identical

    Hi All! Was hoping to get some help on the following issue:
    I have a long list of names and addresses of people. Currently the list separates two people associated with the same address. I would like to merge the names of the two people in identical addresses and eliminate the extra row. Attached is a screen shot of the CURRENT LIST and what I want it to look like. Please let me know if you have an easy solution. If I am able to add the text "and" or "&" between the two merged cells, that would be ideal.

    Thank you so much!!
    Attached Files Attached Files
    Last edited by shanyc; 11-28-2018 at 10:11 PM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Merge Cells Depending on whether the next column is identical

    Can you attach a sample workbook, not a screenshot?

  3. #3
    Registered User
    Join Date
    11-28-2018
    Location
    LIC, NY
    MS-Off Ver
    MS office for MAC
    Posts
    2

    Re: Merge Cells Depending on whether the next column is identical

    I just added a sample workbook. thanks for the prompt response!!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,063

    Re: Merge Cells Depending on whether the next column is identical

    Perhaps this formula based proposal will help.
    D3:D10 are populated using: =COUNTIFS(B$3:B3,B3,C$3:C3,C3)
    E3:E10 are populated using: =IF(B3&C3=B4&C4,A3&" & "&A4,A3)
    A14:A24 are populated using: =IFERROR(INDEX(E$3:E$10,AGGREGATE(15,6,(ROW($3:$10)-2)/($D$3:$D$10=1),ROW(1:1))),"")
    B14:C24 are populated using: =IFERROR(INDEX(B$3:B$10,AGGREGATE(15,6,(ROW($3:$10)-2)/($D$3:$D$10=1),ROW(1:1))),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Merge and Center identical cells
    By btbrennan81 in forum Excel General
    Replies: 3
    Last Post: 04-11-2018, 02:35 PM
  2. [SOLVED] merge identical adjacent cells in a range (row)
    By ajm1991 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2016, 08:02 PM
  3. Merge identical cells in one column, adding corresponding values in next
    By Fishdisease in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2016, 08:49 AM
  4. [SOLVED] Merge identical cells in table
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2015, 01:35 AM
  5. VBA to merge cells with identical content
    By juangar1992 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2013, 04:05 PM
  6. Merge Cells depending on another column
    By sp123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2006, 04:13 PM
  7. Replies: 1
    Last Post: 05-04-2005, 08:06 AM

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