Thank you avveerkar,
Any suggestions if I have n lines (n>20 and is changing)?