This strikes me as an interesting problem, and one with many potential solutions! Of course, it would be great to be able to modify the statusbar behaviour in Writer so that the table info displayed for a selected column isn’t in the format Table1:B1:B5
(or whatever), but would give Calc’s Average: 3; Sum: 15
(or whatever!). But I can’t work out how to do that. There might also be some “macro” solution, but I can’t work that out either.
Since you’re using Linux of some flavour, here’s something that would work.
- Open a plain text file (in your favourite text editor;
gedit
would do), and save it (e.g. “colnum.txt”).
- To check your table-column from Writer, select-copy that column,
Alt-TAB
to your editor, paste the contents of clipboard, then Ctrl-S
to save.
- In terminal (in the same directory as the file, or modify below to reflect true path-to-file), run the following line:
$ awk '{s+=$1} END {print s}' colnum.txt
And that will “print” to screen the sum of your column.¹
For subsequent columns (assuming you’re doing lots of these, one after the other), just keep that text file open, and after refreshing it’s contents (Ctrl-A
> Ctrl-V
to replace contents > Ctrl-S
to save new values), all you have to do in the terminal is press the [↑] up-arrow key, hit “Enter”, and get your new value.
It actually goes very fast once it’s set up. NOT (I know) an ideal solution, but it’s a start. (There are ways of taking input directly from the clipboard in Linux, but that requires third-party apps. This solution is “native”.)
¹ HT: https://stackoverflow.com/q/450799/232251
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!