Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Search Duplicate Cells in Column and Incrementally Append Number to create Unique Value

I have a column that has duplicate entries. I need to create unique values for each entry by adding a number to the end of it.

Example:
Column A

  1. John Doe
  2. Jack Tee
  3. John Doe

Column B (solution Column)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  1. John Doe
  2. Jack Tee
  3. John Doe 1

I searched a lot and couldn’t find an answer! Any help is appreciated.

I’m using Microsoft (excel) 365 and running the latest version, if that makes any difference.

>Solution :

Countif can do that for you:

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

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading