LEFT
The LEFT function extracts a specified number of characters from the beginning of a text string. Use this function to retrieve a portion of text from the left side of a larger string.
Syntax 🔗
=LEFT(text
, num_chars
)
text | The text string from which you want to extract characters. |
num_chars | The number of characters you want to extract from the left side of the text string. |
About LEFT 🔗
Use the LEFT function in Excel to extract a specific portion of text from the beginning of a string. This function is useful when you need to isolate a certain number of characters, such as a name or code, from a larger text sequence. It's simple to use and helps you manage text data effectively.
Examples 🔗
Suppose you have the text string 'ExcelRocks2022' and you want to extract the first 5 characters. Use the formula: =LEFT("ExcelRocks2022", 5). This will return 'Excel'.
Imagine you have the text string 'HelloWorld' and you wish to retrieve the first 3 characters. Use the formula: =LEFT("HelloWorld", 3). This will output 'Hel'.
Notes 🔗
Use the LEFT function when you need to extract a set number of characters from the start of a text string. Make sure the num_chars
argument is not greater than the length of the text string to prevent errors.
Questions 🔗
num_chars
in the LEFT function is greater than the length of the text string?If the specified num_chars
is greater than the length of the text string, the LEFT function will return the entire original text string without any truncation.
No, the LEFT function is specifically designed to work with text strings. If you attempt to use it with numeric values, it will result in an error.
Is the LEFT function case-sensitive?No, the LEFT function is not case-sensitive. It will extract characters from the specified position regardless of whether they are uppercase or lowercase.