Originally Posted by
NBVC
What I don't know is what kind of coding do you want to give the ID. If it is simply a number, so that all Stapla get a 1, all Perkin Elemer get a 2, all Biogen Idec get a 3, etc... then I gave you that formula (you just need to adjust for the extra column):
=IF(COUNTIF($A$1:A2,A2)>1,VLOOKUP(A2,A$1:C1,3,0),MAX(C$1:C1)+1)
If you don't want just a number, it might be more complicated, and we need to know some sample code you need to use as the company id.
if the company listing is only unique companies, and no duplicates, then:
=ROWS($A$2:$A2)
and if you want a generic code like Company1, Company2, etc, then try:
="Company"&ROWS($A$1:$A1) copied down
or
="Company"&TEXT(ROWS($A$1:$A1),"000")
if you want like: Company001, Company002, ... Company999...
Bookmarks