How to replace old standard text ads only if there is no expanded text ads in the ad group?

Select the campaigns/search terms/ad groups and click on push ads option.

In the window select replace the old format ads only in ad groups having no expanded ads option and click on submit. This will replace all your old ads with the new expanded text ad only if there is no expanded ad in the ad group.