You can say that, but if you say someone is excellent, it means better and above (all) others in achievement and ability. So the sentence is not quite ringing true.
"you are all excellent students, it has been a pleasure to teach you this term, good luck in your future lives"
something like this is a more natural to say it.
"the same commitment/dedication/determination/will power/resolve/ etc as others"
the same (character traits) as (others) = good and natural.
the same (superlative 'excellent' ? ) as (others) = not so good ?