ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Numbering Duplicates (https://www.excelbanter.com/excel-worksheet-functions/95669-numbering-duplicates.html)

Edgar Thoemmes

Numbering Duplicates
 
Hi,

Could someone help me with a formula for the following?

I have a list of data which I would like to highlight the duplicates in.
Basically I would like to add a column which would prefix the value by a
number which would increase by each duplicate

AAAA
AAAA
AABA
AABA
AACA
AADA

Would become

1_AAAA
2_AAAA
1_AABA
2_AABA
1_AACA
1_AADA

Etc etc.....Can anyone help?

Thanks

Ardus Petus

Numbering Duplicates
 
in B1, enter:
=COUNTIF($A$1:$A1,A1)&"_"&A1
and copy down


HTH
--
AP

"Edgar Thoemmes" a écrit dans le
message de news: ...
Hi,

Could someone help me with a formula for the following?

I have a list of data which I would like to highlight the duplicates in.
Basically I would like to add a column which would prefix the value by a
number which would increase by each duplicate

AAAA
AAAA
AABA
AABA
AACA
AADA

Would become

1_AAAA
2_AAAA
1_AABA
2_AABA
1_AACA
1_AADA

Etc etc.....Can anyone help?

Thanks





All times are GMT +1. The time now is 02:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com