An exchange energy functional is proposed and tested for obtaining a class of\nexcited-state energies using density-functional formalism. The functional is\nthe excited-state counterpart of the local-density approximation functional for\nthe ground-state. It takes care of the state-dependence of the energy\nfunctional and leads to highly accurate excitation energies.\n