Ananthmca2004,
The first part of your request, taking data from Sheet1 to Sheet2 based
on the employee number, looks like use of the VLOOKUP function will do what
you need. Take a look at that using Excel's Help feature.
The second part, transfering data from Sheet2 to Sheet3 when you close
the file, will require use of a macro which will have to be tailored to
exactly the information and format that you want.
> i am having two worksheets
>
[quoted text clipped - 13 lines]
>
> note : it is not possible to sort the worksheet1.