Syntax
=LENB(text)Arguments
| Argument | Required | Description |
|---|---|---|
text | Required | The text whose length you want |
How to use LENB
LENB is kept so older workbooks keep working. It calculates the same way as LEN, which is the name to use in new formulas.
LENB takes 1 required argument. Type =LENB( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=LEN("Phoenix, AZ")Result =LEN("")Result =LEN(" One ")Result Related text functions
- JOINJoins values and ranges with a delimiter between them.
- LEFTReturns the first characters of a text.
- LEFTBSame as LEFT, counting bytes; without a double byte language set as default each character counts as one byte.
- LENReturns the number of characters in a text.
- LOWERConverts text to lowercase.
- MIDReturns characters from the middle of a text, given a start position and a length.
- MIDBSame as MID, counting bytes; without a double byte language set as default each character counts as one byte.
- NUMBERVALUEConverts text to a number using the decimal and group separators you give, whatever the locale.
- PHONETICReturns the phonetic (furigana) text of a cell; here that is the text of the cell itself.