# Can latex use function like excel? [duplicate]

I have a table with 3 columns:

\begin{tabular}{|c|c|c|}
\textbf{C1} & \textbf{C2} & \textbf{SUM}
\hline
2 & 3 & 5
\end{tabular}


But, if I change C1 or C2, I have to change SUM manually. In excel, I can use function like =C1+C2, then SUM will update automatically when C1 or C2 changed. Can latex do that?

• pgfplotstable could probably do this. – Manuel Nov 2 '16 at 9:33
• Could you give an example? @Manuel – expoter Nov 2 '16 at 9:36
• No, I don't know how it works, I only know of its existence. – Manuel Nov 2 '16 at 9:37
• spreadtab – Dai Bowen Nov 2 '16 at 9:37

Just an advertiser for @DaiBowen's suggestion: The first example of the spreadtab Manual (page 2) addresses your question.

\documentclass{article}