# Adding numerical values in a LaTeX tabular column [duplicate]

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.

-

## marked as duplicate by Hendrik Vogt, Caramdir, lockstep, Martin Scharrer♦Mar 8 '11 at 15:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Please take a look at the question Hendrik has suggested as the answers there might help you. If they do, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find the answers quickly. If they don't, please edit your question here to explain why so that people can better focus their attention to help you. – Martin Scharrer Mar 7 '11 at 17:18

## 2 Answers

I know spreadtab

This is a very fine package and you can make a lot of things with this package. I know the author so if you have a problem, I can help you.

-
This looks like a very interesting package! – Alan Munn Mar 7 '11 at 17:05

You can use the datatool to either generate the data or read it in from a CSV spreadsheet file. The package can do calculations on the data from within your document as well.

-