If a photon of light hitting the atom has energy greater than the ionization energy, it will be absorbed and the electron absorbing the energy will be ejected from the atom with an energy equal to the photon energy minus the ionization energy.