Here is an example of how to create functions with Office Math. If you want to use the example in your own formula, copy it to the Commands window using the clipboard.
func f(x","y)={x sin x~ tan y} over {cos x}