Try some of these links:
http://www.tngennet.org/civilwar/csainf/csa17.html
http://www.tngennet.org/franklin/fran17th.htm
Here's the reference on the above link to your ancestor:
RANEY, W.P., Sgt., Co. A, Enlisted May 16, 1861. 1/2 months pay deducted of regimental court martial Feb. 1863. Surrendered with R.E. Lee at Appomattox Court House April 9, 1865.
Jim Martin