I know this is not the programming forum, but issues like this I always use a little macro to do the job. I've adapted it for your needs.
The macro is designed to work with your sheets as you've shown them. I've highlighted the parts of the code you would need to edit / change to match your actual working sheets.
=============
How to install the macro:
1. Open up your "attand.xls" workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
Bookmarks