It would be helpful if you showed us a sample of your data (not all 5000+ lines :-) and the results you expect from it. I'm afraid I'm not quite sure what you are trying to do from your description.
A couple of points with your code.
I hope these initial impressions are of use to you.
Cheers,
JohnGG
Update: Two more things I just noticed.
In reply to Re: comparing columns and printing a result
by johngg
in thread comparing columns and printing a result
by slartsa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |