Ask Your Question

How can I calculate a corrected wordcount in a field? [closed]

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

Evil Overlord gravatar image

updated 2020-07-23 17:45:53 +0100

Alex Kemp 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 reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-07-23 17:46:02.314304

1 Answer

Sort by » oldest newest most voted

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

Kruno gravatar image

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

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

Question Tools

1 follower


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

Seen: 312 times

Last updated: Sep 01 '16