+ Reply to Thread
Results 1 to 3 of 3

find du/triplicates or more and combine cellvalue of next cells

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    Netherlands
    MS-Off Ver
    2003
    Posts
    2

    find du/triplicates or more and combine cellvalue of next cells

    Hi,

    I want a VBA that searches for duplicates, triplicates, or more and combine the cellvalue that is next to the duplicates. Also, if it combines them, it should only use the last letter. I have a code that works partially, but I'm stuck.

    For example, I have this list:

    1 2014A
    2 2014B
    3 2014C
    1 2014D
    4 2014E
    1 2014F

    I want it to combine the A, D and F like this:
    1 2014A 1 A/D/F
    2 2014B 2 2014B
    3 2014C 3 2014C
    1 2014D 4 2014E
    4 2014E
    1 2014F

    I created the following script, but i can't get it to use the last letter. Also it creates a " / / " when the cells are empty. Can somebody help me? I'm stuck.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by lesulong; 08-12-2014 at 07:36 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: find du/triplicates or more and combine cellvalue of next cells

    Hi,

    Try the method in the attached example.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-12-2014
    Location
    Netherlands
    MS-Off Ver
    2003
    Posts
    2

    Re: find du/triplicates or more and combine cellvalue of next cells

    Thanks for the quick reply, it works like a charm! Totally forgot I could use a function. Thank you!

+ 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. [SOLVED] Change Cellvalue to a Formula
    By turist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2014, 10:17 AM
  2. [SOLVED] CellValue = TextBox6 + TextBox4(*7) VBA
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-15-2013, 12:38 PM
  3. [SOLVED] Returning last cellvalue in row
    By Lv27 in forum Excel General
    Replies: 6
    Last Post: 08-21-2012, 07:28 AM
  4. Write data to different sheets depending on cellvalue
    By JaSc68 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2012, 10:05 PM
  5. Replies: 2
    Last Post: 07-18-2012, 09:11 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