问题
I have a column with names and i wanted to add a column that count the sequence of each row based on the name. So if a name appears multiple time (i.e 4), the first row of that name will have sequence 1 and the 2nd row sequence 2, etc...
Name Sequence
Andrew 1
Andrew 2
Andrew 3
Paul 1
Amy 1
Amy 2
Jean 1
回答1:
Use COUNTIF with a variable range:
=COUNTIF($A$1:A2,A2)
来源:https://stackoverflow.com/questions/52171832/create-a-sequence-column-in-excel