A technique is proposed for creating nonground-state Bose-Einstein condensates in a trapping potential by means of the temporal modulation of atomic interactions. Applying a time-dependent spatially homogeneous magnetic field modifies the atomic scattering length. A modulation of the scattering length excites the condensate, which, under special conditions, can be transferred to an excited nonlinear coherent mode. It is shown that a phase-transition-like behavior occurs in the time-averaged population imbalance between the ground and excited states. The application of the technique is analyzed and it is shown that the considered effect can be realized for experimentally available condensates.