Do not use HTML, that is not proper, HTML is simply going to be the 'display', you're going to want to use XML to relay the information and the math, using Tables int he excel sheet.
Then create a 'Spry', or a 'Data Array' to insert the information from the HTMl document containing the XML information that was extracted from the excel spreadsheet.