|I'm glad I could help.|
re: ...about the other cases;it should be ignored...
Actually, I don't think that you want them to be ignored.
The formula I offered did not ignore those cases, it dealt with them by returning a blank cell ("") if none of the other conditions were met.
The formula below actually does "ignore" them, by not telling Excel what to return if the other conditions are met.
Try it and I think you'll see why you don't want to "ignore" values outside of your ranges.
See what happens if you use this formula with a 0 in A1.
=IF(OR(AND(A1>0,A1<90),AND(A1>180,A1<270)),"PRINT B",IF(OR(AND(A1>90,A1<180),AND(A1>270,A1<360)),"PRINT S"))