ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is There A Solution.......? (https://www.excelbanter.com/excel-programming/369713-there-solution.html)

Thyagaraj

Is There A Solution.......?
 
Dear Friends,

I need to recognise the duplicate data in a selected range and add an
alphabet to the duplicate data.

Is this possible through a macro, can any one help.............?


Thanks in advance

Regards
Thyagaraj


Bernie Deitrick

Is There A Solution.......?
 
How about a formula?

For data in column G, starting in row 2. Put this in cell H2, and copy down to match column G:

=IF(COUNTIF($G$2:G2,G2)=1,G2,G2&CHAR(COUNTIF($G$2: G2,G2)+63))

This will work for up to 26 duplicates....

HTH,
Bernie
MS Excel MVP


"Thyagaraj" wrote in message
ps.com...
Dear Friends,

I need to recognise the duplicate data in a selected range and add an
alphabet to the duplicate data.

Is this possible through a macro, can any one help.............?


Thanks in advance

Regards
Thyagaraj




Thyagaraj

Is There A Solution.......?
 
Dear Bernie Deitrick,


Thank u, its working fine....



Regards
Thyagaraj
Bernie Deitrick wrote:
How about a formula?

For data in column G, starting in row 2. Put this in cell H2, and copy down to match column G:

=IF(COUNTIF($G$2:G2,G2)=1,G2,G2&CHAR(COUNTIF($G$2: G2,G2)+63))

This will work for up to 26 duplicates....

HTH,
Bernie
MS Excel MVP


"Thyagaraj" wrote in message
ps.com...
Dear Friends,

I need to recognise the duplicate data in a selected range and add an
alphabet to the duplicate data.

Is this possible through a macro, can any one help.............?


Thanks in advance

Regards
Thyagaraj



Bernie Deitrick

Is There A Solution.......?
 
Glad to hear it....

Bernie
MS Excel MVP


Thank u, its working fine....





All times are GMT +1. The time now is 06:25 PM.

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