The interplay between spectroscopy and electron diffraction