Hi,

Can you not do what is required with standard validation, using the Custom option and the formula

=COUNTIF($A:$B,A1)<=1

?