Ask Your Question

How can I calculate a corrected wordcount in a field?

asked 2016-09-01 01:40:35 +0200

Evil Overlord gravatar image

It's easy to insert a field showing the number of words in a document. However, that figure includes _all_ words, including headers, etc.

I have a short story template, and I'd like it to display the number of words in the story, minus the baseline words in the template, minus the address, title, etc. The titles will be variable length, but for simplicity here, I'd like a field that shows the result of the formula: LO # of words in document minus 152 (e.g., =Words - 152).

I see the way to enter a formula in a field, but I don't know how to refer to the # of words.

Replies to a couple of similar queries seem to suggest this is not possible, but they're not definitive, and that seems a strange result.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-09-01 09:26:23 +0200

Kruno gravatar image

updated 2016-09-01 09:27:49 +0200

There is similar question: Word count of Text Body, excluding headings, captions & tables etc...

You could always select your story and see what number will that give. When you select text, LibreOffice will show how may words are selected. You can't insert that number as a variable, but at least you can have it.

Maybe it can be done with a macro?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-09-01 01:40:35 +0200

Seen: 167 times

Last updated: Sep 01 '16