Select the cell(s) and set the writing direction in the Text menu or the Text section of the Format Panel.

 

writingdirection.png

For vertical text, use the Vertical text button or click Vertical in the Text, Alignment menu.

 

verticaltext.png