Marc, Just by copying your program in Post#18 and pasting in binary excel file will give me the result. Just clarifying in case i am doing some mistake. Thanks