In Column C, I Want to rename the Column A Name in order of Date Of Birth, but only if a duplicate is found. Otherwise, the name in Column C should be the same as Column A. For example, there are two Ajays, so the elder is Ajay 1, the younger is Ajay 2.
[A] [B] [C]
Name Date of Birth New Name
Ajay 18/05/2009 Ajay 2
Rajesh 12/04/2003 Rajesh 2
Sunil 13/02/1990 Sunil
Rajesh 13/04/1999 Rajesh 1
Ajay 12/01/2000 Ajay 1
Rajesh 12/04/2008 Rajesh 3
I tried this, which did not work:
IF(COUNTIFS($A$2:$A$7,A2)>1,MATCH(A2,$A$2:$A$7,0),0)
One friend suggested:
=$A1&IF(COUNTIF($A:$A,$A1)>1," "&COUNTIF($A$1:$A1,$A1),"")
but it does not rename in decreasing order of age
