I would expect that you are putting this in the Record Selection Formula and I would do it with:
{Command.TransType} = "Y"
OR
{Command.TransType} = "N"
and not {Command.TransType} IN (13, 14, 18, 19)
I often forget where the "not" goes (before or after {Command.TransType})
and if {Command.TransType} is a string value, you have to put each one in quotes. ("13", "14", "18", "19")