The LEFT Function in Excel
![]() |
Left Function excel wala |
Syntax
Arguments
text: The text string you want to extract from (required)
[num_chars]: The number of characters to extract
(optional, defaults to 1 if omitted)
Examples
=LEFT("Microsoft", 5) // Returns "Micro"
2. Omitting num_chars (defaults to 1):
=LEFT("Excel") // Returns "E"
3. Using cell reference:
=LEFT(A1, 3) // Returns first 3 characters from cell A1
Common Uses
- Extracting area codes from phone numbers
- Getting initials from names
- Pulling product codes from longer identifiers
- Isolating the first word in a sentence
Notes
- If num_chars exceeds the text length, LEFT returns the
entire text
- LEFT always returns a text string, even when extracting
numbers
إرسال تعليق