Scott,
NO W. F. Lewis served in the 10th VA Inf. Additionally, no Lewis' served in Company H. Lewis' served in Company B (4), E (1), F (1), and I (1).
A William M. served in Company B.
Almost certainly, Company H, 47th VA Inf. is the unit in which your Lewis served.
John