Left Function in Microsoft Excel

In this article, we’ll learn how we can use LEFT function in Microsoft Excel.

In Microsoft Excel, LEFT function is used to extract the leftmost characters from a string. In addition, the number of characters returned from the left side is based on the number of characters we specify. It is generally used to separate text, like initial, first name, zip code, area code etc.

LEFT function takes two arguments:

First is “text”, it’s the text / string from which we want to extract characters.

And second is “[num_char]”, it is an optional argument and if omitted, it is assumed to be 1.

image 1

 

Let’s take examples and understand,

We have taken sample data according to usage of LEFT function in different situations.

image 2

 

1st Example:-

In the first example, we will learn how we can extract 4 letters from left.

image 3

 

Follow the given below steps:-

  • Enter the function in cell B7
  • =LEFT(A7,4)
  • Press Enter

image 4

 

It returns the left 4 characters which is “This” from the text “This is simple text”.

 

2nd Example:-

And, what happens if we do not enter anything in the 2nd argument and skip it?

image 5

 

Follow the steps given below:-

  • Enter the function in cell B8
  • =LEFT(A8), Press Enter

image 6

 

It gives us “T” because by default, it has extracted the first left character from the string.

 

3rd Example:-

In the below image, we want to extract “12345” in cell B9 from the longer number “1234567890” located in cell A9.

image 7

 

Follow the steps given below:-

  • Enter the function in cell B9
  • =LEFT(A9,5)
  • Press Enter

image 8

 

4th Example:-

In this example, we’ll see that if we give 0 in the 2nd argument then what will be the result.

image 9

 

Follow the steps given below:-

  • Enter the function in cell B10
  • =LEFT(A10,0), Press Enter

image 10

 

The function has returned empty cell because we have specified 0 in number of characters we wanted to extract from the string.

 

5th Example:-

In this example, we will enter negative number in the second argument.

image 11

 

Follow the steps given below:-

  • Enter the function in cell B11
  • =LEFT(A11,-1), Press Enter

image 12

 

It gives #VALUE error because the num_char is less than 0, and LEFT does not allow the negative value.

So, this is how we can use LEFT function in different situations.

 

image 48
 

Video: How to use LEFT function in Microsoft Excel

Watch the steps in this short video, and the written instructions are above the video

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube