My suggestion would be to have your raw data on one worksheet, then create another worksheet with formulas to format your data the way you want. You can save the second worksheet as a .txt file.
Is your payee field guaranteed to be no longer than 18 characters? If so, the formula for the payee field would be
If it might be more than 18 characters you need
For the numeric field, I was not able to find any way to coax Excel to show a decimal number without the decimal point. Therefore for pounds you would have to convert to pence using this:
You could concatenate all this together into one massive formula, or you could create a third sheet that referred to the second
Bookmarks