Copy/paste the full list of student IDs and the sublist you want to compare, from Excel. The resulting table should be easy to copy/paste back into your spreadsheet:

Master List:

Sub-List: