The excel LEFT function takes a number of characters in the text from the left.
LEFT(text, [num_chars])
text, required, the text from which to extract the characters.
num_chars, optional, specifies the number of characters to extract.
The following is an example of the LEFT function usage and the results
=LEFT(A2,0)
You got nothing if you put zero number on the num_char argument.
=LEFT(A3,3)
Nothing special. You fill number 3 in the num_char argument; then you get the first three letters of the abcde text.
=LEFT(A4,1000)
Regardless of how you fill the num_char argument, if it is larger than the text length, you got the same text.
=LEFT(A5,-1)
You get the #VALUE! Error if you fill a negative number in the num_char argument.
=LEFT(A6,2)
The LEFT function can extract the alphanumeric value because alphanumeric is a text.
=LEFT(A7,2)
The LEFT function can extract numeric values too. Both alphanumeric or numeric values the LEFT function return the same result.
=LEFT(A8,2)
Whatever the format cell applied to a number, the LEFT function ignores it and only extracts the number.
=LEFT(A9,2)
Why LEFT function returns the same result as the previous 3 LEFT functions for date value 1/1/2019? Excel stores date values in an integer number. Date 1/1/2019 is the same as number 43466.
Read the following article for a more detailed explanation of how Excel stores date and time values
=LEFT(A10,2)
Why the LEFT function returns the different results for cell A10? Cell A9 contains a date, but cell A10 contains a text. LEFT function counts slash line for text values.
The otherwise, date (day, month and year) and slash line is the format of the cell, not the data. The actual data is an integer number.
=LEFT(A11,3)
The LEFT function can extract decimal numbers too. LEFT function count decimal separator as one character.
=LEFT(A12,3)
Why does 1:00:00 PM give the same results as the previous LEFT function? Excel stores date values as integer numbers, and for times values Excel stores as a decimal number.
Read “How does excel stores date and time” for a detailed explanation.
Calculate Number of Days Between Two Dates Excel has a function that calculates the number of days between two dates,…
What is Flash Fill Excel Flash Fill automatically fills your data when Excel detects a pattern in your initial data…
What is Paste Special Paste special is a paste but you can choose the result type. As we all know,…
What is the Excel TEXTJOIN Function? The excel TEXTJOIN function is the best function to concatenate strings in Excel, has…
What is the Excel CONCAT Function? The excel CONCAT function combines all data; it could be a text, a number…
What is the Excel CONCATENATE Function? The excel CONCATENATE function combines text or numbers into a text. CONCATENATE Syntax CONCATENATE(text1,…