You didn't address the concern. A given atom cannot absorb any photon. They can only absorb photons of certain energy levels/wavelengths. Electrons can occupy only certain energy levels. So they can only absorb photons that match the difference if two energy levels.