+ Reply to Thread
Results 1 to 5 of 5

Generating unique strings from duplicates

  1. #1
    Registered User
    Join Date
    10-06-2020
    Location
    Manchester, UK
    MS-Off Ver
    Office 365
    Posts
    3

    Generating unique strings from duplicates

    Hello all,
    Please help me find a formula/function to generate unique strings in column B by appending incremental numbers to duplicates in column A.
    Please see attached files illustrating the output I would like to see in column B.
    Many thanks
    Bel
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by newcombe; 10-06-2020 at 05:45 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Generating unique strings from duplicates

    Welcome to the forum.

    You can use this formula in B2:

    =A2&IF(COUNTIF(A:A,A2)=1,"","_"&COUNTIF(A$2:A2,A2))

    then copy down if it does not copy down automatically.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-06-2020
    Location
    Manchester, UK
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Generating unique strings from duplicates

    Hi Pete

    I have thousands of data with duplicates, I have tried days to figure it out. Thank you indeed, you are a life saver.

    Bel

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Generating unique strings from duplicates

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Registered User
    Join Date
    10-06-2020
    Location
    Manchester, UK
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Generating unique strings from duplicates

    Thank you for your kind help

+ 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] Help with avoiding duplicates with generating random numbers
    By maym in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-14-2017, 11:04 PM
  2. Generating unique id
    By KOBBY123 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2016, 01:43 PM
  3. [SOLVED] Counting Delimited Unique Strings and Removing Duplicates
    By The831st in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2014, 11:51 AM
  4. Generating Combinations of Four "Strings" from large pool of strings!
    By Deathwreaker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2014, 10:12 AM
  5. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  6. Replies: 5
    Last Post: 06-22-2012, 04:03 PM
  7. Replies: 6
    Last Post: 03-29-2012, 12:16 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