There is a way to format it, but I am not aware that you can make it work
dinamically as in Word, for example.
To format it, edit the formula, select the part you want to superscript in
the formula bar, go to Format->Cells, and activate superscript in the effects
section.