Help between Notion users

It's free & easy

Receive points, vote and give the solution

# Is there any way to set word count as a property, like by way of some formula?

So that the Notion word count will always show on the page as one of the properties, without the need to check with the dots in the top right corner
Does any formula have this effect?

polle Points73210

It is not possible.

Notion formulas work inside a table and word count work by page, so it is not possible to use a formula to count characters outside the table.

Hopefully that makes sense.

1vote

### ZhouQuwu commented Mar 11, 2021

Makes sense to me! Thanks a lot:)

0vote

### polle commented Mar 21, 2021

You're welcome. If this solves the question, please select the answer to mark it as solved.

Cheers.

KreaCity Points180

The formula to make it work in a database is possible with Properties but not text on the page.
length(prop("thePropYouWant") will give you a letter count for a Property. But if you want to count words, you can count the spaces. For example :

``if(length(prop("Name")) > 0, length(replaceAll(prop("Name"), "[^ ]", "")) + 1, 0)``

which uses every occurence of space

1vote

### ZhouQuwu commented Mar 11, 2021

Brilliant solution but I write in Chinese so... Still many thanks!!

1vote

### KreaCity commented Mar 11, 2021

Isn’t there a space or something like that ? I don’t know about regular expressions in Chinese but I suppose something exists

0vote

### ZhouQuwu commented Mar 11, 2021

No hahaha. One character follows closely after another, so does the punctuation. But this formula will definitely help a lot once I start to write in English so thank you a lot!

0vote

### Jonathan commented Oct 21, 2022

I'm looking a way to auto-populate word count as a property for a page? It's already calculated for each page, of course, but I am trying to get that same number to auto-populate a property so I can sort on it in a table.

Is the formula above supposed to return that number? It seems like it counts the number of words in the name property rather than the page's word count.

0vote

0vote

### Jonathan commented Oct 25, 2022

Thanks for pointing the way to your answer above. If I place text of a page as a (very large) text property then it seems like the formula above looks promising. At this point my main difficulty is that the formula seems to be an error message about an expected closed parentheses at character 42.

0vote

### polle commented Oct 25, 2022

Please open a new question with the problem you have.

...