Thanks very much for your help. Actually, all my values are stored in a file with .txt extension which is obtained from HPLC machine. My code is two columns which is x and y. Can u send me script to get the values into the x and y in the code u hav sent me. Thanx very much again for your help. SK