Add a unique (sequential) number to "usuername"

S

sawtelle

Add a unique (sequential) number at the end of usersnames


Greetings All,

I have several hundred usernames that are identical (ex. 50 "mjones"). I
want to be able to use excel if possible to place a unique and sequential
number at the end of the duplicates (after the first original of course).

I was able to create a worksheet with "Concoctonate=>Conditional
Formatting=>True&False=>Sorting"... Now just looking for a way to automate
the "adding of unique numbers" at the end of the username.... Any advice...?

Thank you!
Sawtelle
 
G

Gary''s Student

Say your data is in column A. In B1 enter:
=A1
In B2 enter:
=A2 & IF(COUNTIF($A$1:A2,A2)>1, COUNTIF($A$1:A2,A2)-1,"") and copy down

For example:

mike mike
mike mike1
joe joe
joe joe1
jim jim
jim jim1
frank frank
frank frank1
mike mike2
larry larry
 
D

Dave Peterson

You were closer, but I really meant:

=A1&TEXT(COUNTIF(A$1:A1,A1)-1,"0;;;")

(not A4 as the first cell reference)

(I was cleaning up $ signs and got too aggressive!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top