Sorry, delimiters wrong way round! put tData into testData split testData by cr and tab if the number of lines in the keys of testData <> the number of lines in tData then thereAreDupes