Quote Originally Posted by XOR LX View Post
But so would your solution fail if a particular row contained e.g. "Takeover (hostile)" and the (sorted) table contained both "Takeover" and "Takeover (hostile)".

True, that is not an issue with the current choice of keywords, but in general the point stands...

Regards
Nobody suggested otherwise, indeed if you reverse the order of merger and demerger in the lookup table, mine fails and Pepe's works. I was just explaining to Pepe why his had failed, I did not expect to be critiqued for helping out.