=LEN(cell)
=LEN("apple")
In this example, LEN returns 5 because the string "apple" has five characters.
=LEN("apple ")
This time, LEN returns six characters because the string "apple " has six characters, including the space at the end.
=LEN(1000)
This is an example of the LEN function with a number. The function returns 4 because the string 1000 has four characters.
=LEN($1,000)
This is an example of the LEN function with number formatting. The function returns 4 because LEN counts $1,000 without number formatting and "1000" has four characters.
The LEN function is used to count the number of characters in a string, including numerical characters. It does not include number formatting and only takes one argument, which is the text to count.