Hi, ctilmes, i have tried your code and it works great for the table i have given but maybe i should have said that the entries in the table can be of any length, so the destinations can be town instead of twn and the time is sometime 9am instead of 0900. Could you also explain the regulars expressions you have used as i dont understand them too well