LEFT / RIGHT function: Formulas, usage in Excel

The Left and Right functions are one of the most used functions in word processing groups when working on Excel spreadsheets. Based on the function name, you have probably guessed its use, specifically as follows:

  • LEFT returns the first character or characters in a string, based on the number of characters you specify.
  • RIGHT returns the last character or characters in a string, based on the number of characters you specify.

The LEFT and RIGHT functions always count each character as 1, whether it's a single byte or a double byte, regardless of the default language setting. Character counts include spaces (spaces) and other special characters.

LEFT, RIGHT function formulas in Excel

= LEFT (Text, [num_chars])

= RIGHT (Text, [num_chars])

Explain:

  • Text : is required data. This is the text string containing the characters you want to extract.
  • Num_chars : is optional. This is the number that specifies the number of characters you want to get from the left (LEFT function) or from the right (RIGHT function) to.
    • The number of characters to count must be greater or equal to zero.
    • If this number is not entered, the function will default to 1 character.
    • If the number of characters counted is greater than the length of the text, the function takes the entire text.

How to use LEFT and RIGHT functions?

For example, the original text has the content: Download.com.vn. The corresponding return function will be as follows:

Recipe Results returned
= LEFT ("Download.com.vn"; 8) Download
= RIGHT ("Download.com.vn"; 3) .VN

Applies to specific problems with the Vlookup function

For the main and secondary data tables later, fill in the main data table based on the employee code and data from the 2 secondary tables.

LEFT / RIGHT function: Formulas, usage in Excel

The provisions are as follows : The first 2 characters of the NV Code describe for the job position, the characters at the end describe for the place where employees work. Based on that, we will fill in the formula for calculating each column as follows:

CV position = VLOOKUP ( LEFT (C3; 2) ; $ B $ 22: $ C $ 24; 2; 0)
Workplace = VLOOKUP ( RIGHT (C3; LEN (C3) -5) ; $ E $ 22: $ F $ 23; 2; 0)

In the above formula I have used LEN (Text) as a function to measure the length of a string. Since the Workplace column to look up the column is not 2 or 3 characters long, the length of the string is subtracted from the length of the first characters. To reduce complexity, you can norm for the same type, for example, instead of HN and HCM, you can convert to HAN and HCM, the formula will only be: 

= VLOOKUP ( RIGHT (C3; 3) ; $ E $ 22: $ F $ 23; 2; 0)

And here is the results table after you've filled the formula and copied data down the lines below:

LEFT / RIGHT function: Formulas, usage in Excel

That's it, do you find these 2 functions simple? Actually these are the two simplest functions in the text function group. In addition, through this article you also know one more simple function is the LEN function. Please follow the next articles on Download.com.vn to learn more about using other basic functions of Excel!

Sign up and earn $1000 a day ⋙

What should I do if Netflix is ​​hacked?

What should I do if Netflix is ​​hacked?

What should I do if my Netflix account is hacked? What should I do if my Netflix account is hacked? Here's what you need to know when your Netflix account is hacked.

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know

Tips for using LDPlayer you may not know. LDPlayer is one of the most popular Android emulators on computers today. This article will provide it to you

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know

Shortcuts in Blender that users need to know. Blender shortcuts help you work faster when designing graphics. Therefore, WebTech360 will synthesize the keys for you

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know

Kahoot hacking tips you may not know, how to hack Kahoot to get answers to difficult questions? This article will suggest you some of the simplest Kahoot hacks.

What is Google TasksBoard?

What is Google TasksBoard?

What is Google TasksBoard?, Google TasksBoard is a new task management app, helping you increase work efficiency. Let's learn with Donwload.vn how to use Google TasksBoard

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?

Is Google Takeout a good data backup option?, Google Takeout comes from a line of free services from Google. Google says it will help users download it

Host permissions and how to specify co-host in Zoom

Host permissions and how to specify co-host in Zoom

Host rights and how to designate co-host in Zoom. How to regain host rights on Zoom is not difficult. This article will introduce you to host and reclaim host details

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert

6 steps to become a Pinterest expert, Pinterest is a tool for collecting, organizing, and sharing photos and videos you glean from the Internet. Here are 6

3 ways to edit sunsets in Photoshop

3 ways to edit sunsets in Photoshop

3 ways to edit sunset in Photoshop, Sunset is always a scene that every photographer wants to capture. However, taking sunset photos is not easy. Wear

Convert text to speech online

Convert text to speech online

Convert text to speech online. If you want to listen to the pronunciation on Google Translate or Google Translate, users can download this voice to your computer easily.

(2024) The Best Free Cloning Software for Windows 10/11

(2024) The Best Free Cloning Software for Windows 10/11

Are you looking for the free cloning software for Windows 10? This passage will share you the best free Windows 10/11/7 cloning software in 2024.

Steps to create a new database in Access

Steps to create a new database in Access

Steps to create a new database in Access, Steps to create a new database in Microsoft Access are not difficult. This article will guide you in detail on the steps to build muscle

3 ways to save files better on your computer

3 ways to save files better on your computer

3 better ways to save files on your computer, How to save files on your computer is not difficult. However, what is the best way to save on the computer? Let's find out with Dowload.vn

10 poems for the first day of school in 2023 - 2024

10 poems for the first day of school in 2023 - 2024

10 poems for the opening day of school in 2023 - 2024, TOP 10 short and unique poems for the opening day of the new school year. We invite you to follow along!

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone

Things you should do first when buying a Samsung smartphone, Samsung phones contain a lot of applications and settings. Here are the settings you should do when

The easiest ways to create borders for photos

The easiest ways to create borders for photos

The easiest ways to create borders for photos, Adding frames to photos is not difficult and you have a lot of options. This article will summarize for you ways to add frames to beautiful photos

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?

Office 2021 vs. Microsoft 365: Which software is right for you?, Office 2021 and Microsoft 365 can both meet office editing tasks. So Office 2021

Gemini - Googles artificial intelligence model

Gemini - Googles artificial intelligence model

Gemini - Google's artificial intelligence model, Google launches Gemini - an artificial intelligence model competing with OpenAI's GPT-4, this is an artificial intelligence model

What is rendering?

What is rendering?

Rendering is the process of creating an image from a model into a movie scene or image using computer software.

What is CPU? What are the popular CPU types today?

What is CPU? What are the popular CPU types today?

The CPU is the data processing center, or simply understood, it is the brain that controls most of the rest of the components in a computer.