+ Reply to Thread
Results 1 to 4 of 4

Merging cell contents based on criteria

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    Dorset, England
    MS-Off Ver
    Office 365
    Posts
    14

    Merging cell contents based on criteria

    Hi All
    I am not sure if this is possible but here goes:

    I receive a parts list such as this:

    Description Part Number Location
    100 nf 112-123 C1
    100 nf 112-123 C5
    100 nf 112-123 C7
    100 K 151-147 R1
    100 K 151-147 R2
    100 K 151-147 R3

    These lists can often be very long. What I need to do is somehow get Excel (2007) to concatenate the location based on the part number, like this:

    Description Part Number Location
    100 nf 112-123 C1, C5, C7
    100 K 151-147 R1, R2, R3



    Not sure if I am asking too much.

    Thanks in advance for any help.


    Mario

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merging cell contents based on criteria

    Try the attached.

    Please note the name of the sheet where your data is sheet5. This is my sheet name, change the name to suit your needs if you wish to run the code on different worksheet
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    Dorset, England
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Merging cell contents based on criteria

    Thanks AB33 works a treat and has saved me countless hours. Thanks again!

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merging cell contents based on criteria

    Mario,
    You are welcome!
    Could you please now close this thread as solved? Go in to the top right-hand side of this page, choose "Thread Tools" then select solved from the drop down menu.

+ 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