Depending on what version of Excel you have, pushing the
content out as XML and having Excel read it is probably your best
bet, especially since you want to embed a formula in the
spreadsheet. You should be able to google Excel and XML for more
detailed tutorials and examples.
-Tim