Try this:

=AND(T1,"NO",Q1,>360,Q1,<800)

As you are looking for a TRUE/FALSE outcome, you don't actually need an IF statement at all - the above will evaluate to TRUE or FALSE.