+ Reply to Thread
Results 1 to 5 of 5

To find duplicates in a column and suffix them with numbers to make them unique

  1. #1
    Registered User
    Join Date
    12-28-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Talking To find duplicates in a column and suffix them with numbers to make them unique

    Guys....listen up...I dunno whether ya come across such a situation...but 'if'....then try this...
    excel column A
    A
    1 Fool
    2 Prodigy
    3 Brilliant
    4 Exemplary
    5 Fool
    6 Fool
    7 Prodigy
    8 Fool

    ya got yourselves an excel column with duplicates..if ya wanna find those duplicates n suffix them with numbers or alpha.....to make 'em unique..this may helpya...

    im gonna place a formula in B1......=if((countif($A$1:A1,A1))=1,A1,A1&" "&countif($A$1:A1,A1)) drag down..
    ya'l get somethin like this.....in column B

    B
    1 Fool
    2 Prodigy
    3 Brilliant
    4 Exemplary
    5 Fool2
    6 Fool3
    7 Prodigy2
    8 Fool4

    Hey guys...im not a pro or computer genius...just tried to make this up for my work...just tell me if this is some kinda bull crap......

  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: To find duplicates in a column and suffix them with numbers to make them unique

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    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
    Registered User
    Join Date
    12-28-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: To find duplicates in a column and suffix them with numbers to make them unique

    im gonna place a formula in B1......=if((countif($A$1:A1,A1))=1,A1,A1&" "&countif($A$1:A1,A1)) drag down..

    this formula is a solution.....i ve already explained it..and ve even posted a sample result.

  4. #4
    Registered User
    Join Date
    08-18-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: To find duplicates in a column and suffix them with numbers to make them unique

    Thank you! This actually just helped me identify duplicate invoices in the list of a few tens of thousands, and make them unique before forwarding for upload into a new system.

    -kry

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    Wirral
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: To find duplicates in a column and suffix them with numbers to make them unique

    What if you want to do it the other way? I have a list of data that I need to get rid of and appears as 3 characters after a hyphen e.g. -xxx. There are 3 or 4 entries of the same thing the only difference being the suffixes. I need to remove all the suffixes but I need to check all the data the rows contain first as i need to do some merging before deleting the extra entries. Any ideas?!

+ 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] 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
  2. [SOLVED] Find duplicates in column A, add values from column B (possibly delete duplicates)
    By luarwhite in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2013, 04:34 PM
  3. Find unique numbers in a column
    By FindAnswers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2012, 09:16 AM
  4. Find duplicate values in a column, make each value unique.
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 12:15 PM
  5. How to add a suffix to a whole column of different part numbers?
    By Gene's General in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2006, 02:47 PM

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