I see. I thought you write about 2 roles only, as at the provided example. The only interactive way via WordPress UI is to process users with the same roles list group by group and grant them new roles list except the older one.

The only alternative – PHP script which will select all users with subscriber role and then revoke ‘subscriber’ role from them one by one.