Nov 12, 2016 07:19 AM
Has anyone worked out how to use the COUNT function to count the number of characters in a text string?
Nov 21, 2016 12:01 PM
Nice! How’s this working?
Nov 28, 2016 05:52 AM
Thank you, Peter - that sounds like it will fill the bill perfectly! I will have to try that after clearing out my post-holiday work pile up!
Dec 02, 2016 10:01 AM
Works as desired! I give up being able to average the number of states since it is now text instead of a number, but that is an easy ‘price’ to pay. Thanks again, Peter!
Dec 10, 2016 08:08 AM
Oh, no trouble at all Kat, it was a fun challenge to work out :slightly_smiling_face:
Jul 17, 2018 06:45 AM
Hi guys, Do you know how could I count words, instead of characters?
Jul 17, 2018 11:58 AM
@Diogo_Nogueira - I don’t know of a ‘simple’ solution, but here’s a workaround.
If NOTES is the name of the field you are trying to count words for, try:
LEN(Notes)-LEN(SUBSTITUTE(Notes," “,”"))+1
LEN(Notes) will count the total characters
SUBSTITUTE(Notes," “,”") will remove the spaces from Notes. Wrapping that in LEN will then count the characters in Notes without spaces.
Then we need to add one (1) to this, since the last word won’t have a space after it.
Be aware that if you use a space in the field you are counting, it will effectively tell this formula that there is a separate word.
Hope this helps! :slightly_smiling_face:
Jul 17, 2018 09:02 PM
Nice workaround Gareth,
To further prevent user error though, I would suggest to TRIM Notes to eliminate any leading and trailing spaces.
Kind regards,
Alex
Jul 18, 2018 09:14 AM
Thanks Gareth! I already found a solution! :grinning:
Feb 20, 2019 01:56 PM
Does anyone know how to make a word count formula?
Feb 20, 2019 01:56 PM
There are several threads: https://community.airtable.com/search?q=word%20count