A Google search, 42nd Virginia Infantry, and study of the many hits, might get you the exact figures, but what I found below, may be sufficient to answer your question.
George Martin
42nd Infantry Regiment, organized at Staunton, Virginia, in July, 1861, recruited its members in Henry, Floyd, Bedford, Campbell, Roanoke, Patrick, and Franklin counties. After fighting at First Kernstown and in Jackson's Valley Campaign, the unit was assigned to J.R. Jones' and W. Terry's Brigade, Army of Northern Virginia. It was active in many conflicts from the Seven Days' Battles to Cold Harbor, then moved with Early to the Shenandoah Valley and was involved in the Appomattox operations. This regiment reported 70 casualties at First Kernstown and totalled 750 effectives in May, 1862. It sustained no losses during the Seven Days' Battles but had many at Cedar Mountain. There were 62 disabled at Second Manassas, 26 at Fredericksburg, and 135 at Chancellorsville. Of the 265 engaged at Gettysburg, twenty-one percent were killed, wounded, or missing. Only 1 officer and 44 men surrendered. The field officers were Colonels Jesse S. Burks, Andrew J. Deyerle, John E. Penn, and R.W.Withers; Lieutenant Colonels Daniel A. Langhorne, William Martin, and Samuel H. Saunders; and Majors P.B. Adams, Henry Lane, and Jesse M. Richardson.
[NPS Soldiers & Sailors System]
--------------
On April 8, the Second Corps reached Appomattox Court House, and the remnants of the 42nd Virginia Infantry Regiment (one officer and a dozen enlisted men) fought its last battle on April 9, 1865.
[http://www.42ndvirginia.org/1865.html]