Welcome to the forum.

It sounds like you want the cell to be highlighted if it's value does not equal "Y" and does not equal "N".

=AND(A1<>{"Y","N"})