Tell me, please, how to make a formula for meeting the condition: if the cell value is less than 90, then the result is A, if it is more than 90, but less than 180, then - B, if more than 180, but less than 270, then C, otherwise - D.

I tried the formula `=ЕСЛИ(А1<90;"А";ЕСЛИ(А1>270;"D"))`

- but this is only for extreme conditions. Perhaps, it is possible to use the logical operators AND, OR, and so on?