The cross sections of simultaneous photoionization and excitation of the outermost inner closed subshell electrons of boron and aluminium atoms are calculated within a relaxed-orbital Hartree-Fock framework in the dipole approximation. The atoms in the ground and excited states ns 2 n 's 2 S and ns 2 n 'd 2 D are considered. Large differences are found between the cross sections near the threshold of photoionization calculated in the average of configuration, term-dependent and MCHF approximations. A very strong enhancement of the ratio of the cross sections of simultaneous photoionization and excitation to those of the direct photoionization of the atoms in the excited state as compared to the same processes for the atoms in the ground state was obtained. A very low probability of shake-up process for B and Al atoms in the ground state was noted.