There is an easy way to do this if you can import the file into Excel:
Let's say you have imported the file into Excel with the student ID in column A and exam data in column B. With a header row, the first id number is in A2.
1. Select A2 and down to the last row with data in column B.
2...