Update cells of different template

Hi Team,
How can we define the path of the Template Sheet as well as the cell where it should update the Amt.

So have tried to Explain it in the Image attached

The Emp and Dept are taken as arguments

Thanks in Advance!!!