The 4f electron excitation spectra for a series of Ce1−xLaxNi compounds with x = 0; 0.2; 0.5 and 0.8, where transition occurs from intermediate valence to a localized 4f state, have been measured at T = 12 K by inelastic neutron scattering for a wide range of neutron energy transfer. A qualitative change of the magnetic response takes place when the hybridization energy becomes nearly equal to the crystal field splitting of the 4f shell. In pure CeNi, a gap-like magnetic spectrum has been observed.