Thanks for that - it all makes sense now.


As a matter of interest, is there a formula which would sort the output data A-Z if the source data was not in alphabetical order?