perlform might be a solution for you. See the examples therein.
In reply to Re: Need help to convert excel file to text file by hdb in thread Need help to convert excel file to text file by vkp