I have data that looks like this (the actual version has about 2400 rows);
| Name | Course |
| James | a |
| James | f |
| Bill | m |
| Bill | f |
| Bill | r |
| Steve | k |
I'd like to give a record ID to each course starting at 1 for each person. So in the end I want the data to look like this;
| ID | Name | Course |
| 1 | James | a |
| 2 | James | f |
| 1 | Bill | m |
| 2 | Bill | f |
| 3 | Bill | r |
| 1 | Steve | k |
Does anyone know how this can be achieved?
Thank you in advance for your help.
Best,
DHB.