Syntax
=LEFT(text, [num_chars])Arguments
| Argument | Required | Description |
|---|---|---|
text | Required | The text |
num_chars | Optional | How many characters to take (1 when left out) |
How to use LEFT
LEFT takes 1 required argument and 1 optional argument. Type =LEFT( 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.
=LEFT("Sale Price", 4)Result =LEFT("Sweden")Result Related text functions
- FINDBSame as FIND, counting bytes; without a double byte language set as default each character counts as one byte.
- FIXEDRounds a number to a number of decimals and returns it as text, with or without thousands separators.
- JISChanges half width (single byte) characters to full width (double byte) characters.
- JOINJoins values and ranges with a delimiter between them.
- 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.
- LENBSame as LEN, counting bytes; without a double byte language set as default each character counts as one byte.
- LOWERConverts text to lowercase.
- MIDReturns characters from the middle of a text, given a start position and a length.