Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Incrementing Duplicates

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hello there

    How do I scan a column for duplicates and increment each duplicate by one..i.e. if the text AAA and BBB occurs a number of times in a single column how do I scan that column and change the text to AAA001 AAA002 BBB001 etc

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,026
    Post Thanks / Like
    Mentioned
    37 Post(s)
    Tagged
    7 Thread(s)

    Default

    Lets assume that the data (AAA,BBB, etc) start at row 2 in A. Row 1 has a label in A1 and B1 empty.

    In B2 enter and copy down:

    =A2&TEXT(IF(COUNTIF($B$1:B1,A2&"*")=0,1,COUNTIF($B$1:B1,A2&"*")+1),"000")

    Aladin

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •