The LEN function in Excel can count the number of characters in a text string and can count letters, numbers, special characters, non-printable characters, and all spaces in a cell. The length of a supplied text string will be returned by this function.