excel / open office - append an incrementing value to all non-unique fields

Posted by mheavers on Super User See other posts from Super User or by mheavers
Published on 2012-11-27T16:16:36Z Indexed on 2012/11/27 17:07 UTC
Read the original article Hit count: 234

I have a large table of about 7500 store names. I need to search through those names and, if they are not unique, append an incrementing value, for example:

store_1 store_2

etc.

Anyone know how to do this?

For another project, I was using this:

=J1&IF(COUNTIF($J$1:J1,J1)>1,COUNTIF($J$1:J1,J1),"")

but in open office this gives an error, and in google spreadsheets, it times out because my database is so big. Any suggestions?

© Super User or respective owner

Related posts about microsoft-excel

Related posts about openoffice.org