Possible Duplicate:
How can I automatically calculate sums in a LaTeX table?
Does anyone know if the is a TeX/LaTeX package which will make an ordinary tabular environment work as a simple spreadsheet? I am using LaTeX to generate invoices. The invoice is a tabular environment with one row per item and the item amount in the last column. The item amount is entered as a simple number, then a macro prints it with the $ sign. I am looking for something that will add up all the numbers in the last column, calculate the total and show it in the last row, last column. Thanks. Buddy.