Whoops. The formula from post #16 should have been:

=AND(E4<>H4,COUNTIF(H$4:H4,H4)<3)