Calculations of the energy levels of atoms and ions with Z ≤ 10 are carried out in this paper using the variational method. New wave function with two terms including correlation was performed to calculate excited (ns 2 ) 1 S e , (np 2 ) 1 D e , (nd 2 ) 1 G e , (nf 2 ) 1 I e , (nh 2 ) 1 M e and (ng 2 ) 1 K e states with (n ≤ 7). The results obtained show quantitatively the great significance of electron correlation effects in the doubly excited states. These results are in compliance with some experimental and theoretical data.