Hi shehul,
Insert a cell in the footer, right click and format cell.
On the Appearance tab at the bottom you should see a hide cell check box. Check it and in the text box below enter:
=Page()<>NumberOfPages()
Click OK and your cell should be hidden from all pages other than the last one.