I want to make a command (with command blocks) where all players EXCEPT
a certain be put into the Gamemode 2. But how should I formulate the order that a certain is not affected?
You could just take 2 blocks. In the first, everyone sends in gamemode 2, the second sends back the specific player.