We say that to raise an electron to an upper energy level (To excite the electron) you need have a photon with a energy that is equal to the energy gap between the ground state and the next energy level.
But I´m confuse because I cant understand what happens to all the other photons (With different wavelengths) that don´t have the right energy to excite the electron ? Are they reflected ? If so, how is the color of an object defined if a lot of different photons that are within the visible spectrum wavelength are being reflected and reaching our eyes ?