+ Reply to Thread
Results 1 to 10 of 10

Renaming duplicate string in a column

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Question Renaming duplicate string in a column

    Hi All,

    I need a code not formula that code looks of specific sheet column A find duplicate strings then rename like if find "test" 4 times in a column the rename it likt test1,test2,test3,test4 and so on with other duplicates.


    Thank you


    Farrukh

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Renaming duplicate string in a column

    Is this data only 1 in column? Can you attach a sample file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Renaming duplicate string in a column

    option
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: Renaming duplicate string in a column

    hello, I cannot make it work and I need this also but in column B4:B300 only to automatically rename the second or duplicated with "duplicated".

  5. #5
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: Renaming duplicate string in a column

    bump for this.

  6. #6
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: Renaming duplicate string in a column

    Hello! please help

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Renaming duplicate string in a column

    Its better to attach a sample worksheet. With before and after running code.
    Quang PT

  8. #8
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: Renaming duplicate string in a column

    Here it is. A macro will do.
    Attached Files Attached Files

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Renaming duplicate string in a column

    Try:
    HTML Code: 
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: Renaming duplicate string in a column

    Oh! the sample works! However. in the actual worksheet it starts at B4. When I changed the B3 to B4 it gives me an error.

    I manage to make it work by editing some of it but it gives other responses. Kindly check this file.
    Attached Files Attached Files
    Last edited by archvanarl; 06-29-2022 at 03:36 AM.

+ 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