You can change the text orientation of a row or a column header.
Procedure
If you want a vertical text orientation, click the row or column header and click Text orientation > Vertical.
The text is oriented accordingly.
Example