Thanks for offering me the help. To explain more I have attached the file.Kindly help me out. If you could code me with VBA it will be better.