Notion Answers

Help between Notion users


Register & Ask

It's free & easy

Get answers

Answers, votes & comments

Vote and select answers

Receive points, vote and give the solution

Question

3votes

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?

2 Answers

2votes

polle Points77470

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

Makes sense to me! Thanks a lot:)

0vote

polle commented

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

Cheers.

2votes

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

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

1vote

KreaCity commented

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

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

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

polle commented

@Jonathan se my answer above.

0vote

Jonathan commented

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

Please open a new question with the problem you have.

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect