How to get row index if Excel has duplicate row

so, what can we do in this scenario ?