Let the electron ground state have energy $E_g$, let the first excited state have energy $E_1$, and let the second excited state have energy $E_2$.
Let the energy of the photon be given by $E_p = hf$.
Now it isn't the energy of the exited states that is important in transitions, but the energy differences between states.
So instead I'll assume you mean the following condition: $(E_1 - E_g) < hf < (E_2 - E_g)$.
Now as the atom absorbs $hf$, it causes the electron to transition to the first excited state. There is therefore excess energy of $hf - (E_1 - E_g)$. This excess energy is either converted to kinetic energy in the atom, or is reflected as a new photon with lower frequency and energy $E' = hf'$.