If you just want to assign unique ID to each name use this formula in G1
(assuming your data is in F1:F16
like the screenshot below
Approach-1 use this formula in G1
onwards(down)
=COUNTIF($F$1:$F$16, "<="&F1)
Still if you want these numbers to start from 1 and keep on increasing so on use this formula in H1
=SUMPRODUCT((G1>=$G$1:$G$16)/COUNTIF($G$1:$G$16,$G$1:$G$16))
APPROACH-2 Without the need for creating intermediate field
=SUMPRODUCT((F1>=$F$1:$F$16)/COUNTIF($F$1:$F$16,$F$1:$F$16))
You can get results like this
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…