$Excel->Range($mycell)->{Value} = "=your formula here"