Sorry Khan82, I don't understand what you are now trying to do.
Firstly, if it is not related to the original issue you should really start a new thread. Secondly, I think you will find you get more help if you spend a bit of time explaining. Some sample data, details of the results you are getting and the results you want helps to improve the level of understanding of those who want to help.
Cheers
Pete