Effect of neutron halos on excited states of nuclei