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 ⋙

Leave a Comment

How to add Copilot to Microsoft Office 365

How to add Copilot to Microsoft Office 365

Copilot Pro integrates Copilot AI directly into Microsoft 365 apps like Word, PowerPoint, Excel, OneNote, and Outlook....

How to Create a Self Portrait Using Midjourney

How to Create a Self Portrait Using Midjourney

AI art generators like Midjourney can reimagine your photos with different styles, backgrounds, colors, and moods. Follow this guide to create some imaginative self-portraits, seen through the lens of artificial intelligence.

2nm chip prices expected to increase sharply

2nm chip prices expected to increase sharply

TSMC reportedly began taking orders for 2nm wafers earlier this month, with prices estimated at up to $30,000/wafer.

OpenAI is set to acquire Windsurf - one of the worlds most powerful AI code editors

OpenAI is set to acquire Windsurf - one of the worlds most powerful AI code editors

OpenAI is in talks to acquire Windsurf, the industry's leading AI-powered code editor.

5 smartphone trends that should be eliminated

5 smartphone trends that should be eliminated

Whether it's impractical design choices or features that no one really asked for, some of these trends need to go away forever.

How to hide contact information on Instagram

How to hide contact information on Instagram

By default, personal contact information is displayed on your Instagram profile. This can affect your privacy. The following article will guide you on how to hide contact information on Instagram.

How to log out of Telegram account remotely

How to log out of Telegram account remotely

The Telegram application will save all devices that log in to the account in a list for us to monitor. And from this list we can check if there are any unauthorized logins.

Latest Legendary World Code 04/25/2025 and how to redeem code for rewards

Latest Legendary World Code 04/25/2025 and how to redeem code for rewards

Legendary World helps players receive a series of diamonds, treasure chests, and high-level character fragments via giftcode

What is the Google Store? Whats on the Google Store?

What is the Google Store? Whats on the Google Store?

The Google Store has had an interesting history.

How to remove adware on computer

How to remove adware on computer

Security and privacy issues should always be taken seriously. After all, they are closely related to your life, so you must be very vigilant about malware and other threats.

How to fix IPv4/IPv6 No Internet Access error on Windows

How to fix IPv4/IPv6 No Internet Access error on Windows

In this guide, Quantrimang.com will explore some troubleshooting steps to help you resolve the IPv4/IPv6 No Internet Access error and restore your Internet connection.

Nvidia expects RTX 5090/5080 power connectors to not melt thanks to new PCIe plug tech

Nvidia expects RTX 5090/5080 power connectors to not melt thanks to new PCIe plug tech

Surely many people still haven't forgotten the "explosion" scandal on the Nvidia RTX 40-series graphics card line.

Why users are disappointed with Samsungs Galaxy S25 product line

Why users are disappointed with Samsungs Galaxy S25 product line

Many were really looking forward to seeing what Samsung had in store for the Galaxy S25 series, but after seeing everything the company had to offer, they were left disappointed. There wasn't much to look forward to in this year's upgrade.

Scientists are observing an extremely rare phenomenon of a planet being swallowed by a star.

Scientists are observing an extremely rare phenomenon of a planet being swallowed by a star.

This event is extremely rare, but the team hopes to observe more in the future thanks to JWST and other advanced observatories coming online.

How to identify snake holes in your garden

How to identify snake holes in your garden

Snakes don't dig their own burrows, but that doesn't mean they can't take refuge in burrows created by something else. Here's how to identify and deal with a snake burrow in your yard.