For Grades, you can select only the ones you want to update when running the update.
For Students, there isn’t a way to query specific ones. You can run the update for all students, and then mass-delete the ones you don’t want afterward.