When an electron temporarily occupies an energy state greater than its ground state, it is in an excited state. An electron can become excited if it is given extra energy, such as if it absorbs a photon, or packet of light, or collides with a nearby atom or particle.
When an electron quickly occupies an strength state increased than its ground state, it is in an excited state. An electron can end up excited if it is given greater energy, such as if it absorbs a photon, or packet of light, or collides with a close by atom or particle.