• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Lesson 153: How to handle substrings in Excel

AnonyViet by AnonyViet
January 25, 2023
in Office
0

There is no SUBSTRING function in Excel. Use MID, LEFT, RIGHT, FIND, LEN, SUBSTITUTE, REPT, TRIM and MAX in Excel to extract substrings.

Join the channel Telegram of the AnonyViet 👉 Link 👈

How to handle substrings in Excel

Mid

To extract a substring, starting in the middle of a string, use the MID function in Excel.

Lesson 153: How to handle substrings in Excel

Explanation: the MID function starts at position 7 (O) and extracts 6 characters.

Left

To extract the leftmost characters of a string, use the LEFT function in Excel.

Lesson 153: How to handle substrings in Excel 16

To extract a substring (of any length) before the dash, add the FIND function.

Lesson 153: How to handle substrings in Excel 17

Explanation: the FIND function finds the position of the dash. Subtract 1 from this result to extract the correct number of leftmost characters. The formula shown above will become LEFT(A1,4-1).

Right

To extract the rightmost characters of a string, use the RIGHT function in Excel.

Lesson 153: How to handle substrings in Excel 18

To extract a substring (of any length) after the dash, add LEN and FIND.

Lesson 153: How to handle substrings in Excel 19

Explanation: the LEN function returns the length of the string. The FIND function finds the position of the dash. Subtract these values ​​to extract the correct number of rightmost characters. The formula shown above will become RIGHT (A1,6-4).

Find substring between parentheses

To extract a substring between parentheses (or curly braces, curly braces, slashes, etc.), use Excel’s MID and FIND.

1. The recipe below is almost perfect.

Lesson 153: How to handle substrings in Excel 20

Explanation: the FIND function finds the position of the brackets. Add 1 to find the starting position of the substring. The formula shown above will become MID (A1,6 + 1,2). This MID function always extracts 2 characters.

2. Replace parameter 3 with a formula that returns the length of the substring.

Lesson 153: How to handle substrings in Excel 21

Explanation: subtract the position of the opening brace and the value 1 from the position of the closing brace to find the exact length of the substring.

Substring containing specific text

To extract a substring containing specific text (e.g. @ symbol), use SUBSTITUTE, REPT, MID, FIND, TRIM, and MAX in Excel.

1. First, use SUBSTITUTE and REPT to replace a single space with 100 spaces (or any other large number).

Lesson 153: How to handle substrings in Excel 22

2. The MID function below starts position 50 (1/2 * large number) before the position of the @ symbol and extracts 100 (large number) characters.

Lesson 153: How to handle substrings in Excel 23

3. Use the TRIM function to remove leading and trailing whitespace.

Lesson 153: How to handle substrings in Excel 24

4. Put it all together.

Lesson 153: How to handle substrings in Excel 25

Note: in step 2, the MID function starts from position 50 before the @ symbol. If the email address is the first word in the sentence (cell A3), this results in the wrong starting position. In this case, the MAX function (see formula above) returns 1.

Flash Fill

If you don’t like using formulas, use Flash Fill in Excel to automatically extract substrings.

Lesson 153: How to handle substrings in Excel 26

Note: Excel does not insert formulas, if you change the text string in column A, Excel will not update the value in column B.

In addition, you can also view many other excel articles here.

The article achieved: 5/5 – (100 votes)

Tags: ExcelhandleLessonsubstrings
Previous Post

Should I use Microsoft Authenticator or Google Authenticator?

Next Post

How to Find Vulnerable Cameras Using Shodan

AnonyViet

AnonyViet

Related Posts

How to add Watermark to Google Docs to protect copyright
Office

How to add Watermark to Google Docs to protect copyright

April 19, 2026
Instructions on how to hide formulas in Excel to secure data
Office

Instructions on how to hide formulas in Excel to secure data

February 6, 2026
Top who creates the most beautiful presentation slide today
Office

Top who creates the most beautiful presentation slide today

September 23, 2025
Automatically check and correct spelling errors on Google Docs
Office

Automatically check and correct spelling errors on Google Docs

February 23, 2025
Instructions for downloading Google Docs files easily on any device
Office

Instructions for downloading Google Docs files easily on any device

December 18, 2024
Launching AI image creation feature on Google Docs
Office

Launching AI image creation feature on Google Docs

November 20, 2024
Next Post
How to Find Vulnerable Cameras Using Shodan

How to Find Vulnerable Cameras Using Shodan

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Decoding the problem of 4GB RAM and processing performance

Decoding the problem of 4GB RAM and processing performance

April 21, 2026
How to add sliders to Facebook Stories to easily rewind videos

How to add sliders to Facebook Stories to easily rewind videos

April 21, 2026
Reputable LG repair service in Hanoi & Ho Chi Minh City with LGservicecenter

Reputable LG repair service in Hanoi & Ho Chi Minh City with LGservicecenter

April 21, 2026
Japanese Watch Week: Choose the color that suits your destiny, start the new year well at Mobile World

Japanese Watch Week: Choose the color that suits your destiny, start the new year well at Mobile World

April 20, 2026
Decoding the problem of 4GB RAM and processing performance

Decoding the problem of 4GB RAM and processing performance

April 21, 2026
How to add sliders to Facebook Stories to easily rewind videos

How to add sliders to Facebook Stories to easily rewind videos

April 21, 2026
Reputable LG repair service in Hanoi & Ho Chi Minh City with LGservicecenter

Reputable LG repair service in Hanoi & Ho Chi Minh City with LGservicecenter

April 21, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Decoding the problem of 4GB RAM and processing performance

Decoding the problem of 4GB RAM and processing performance

April 21, 2026
How to add sliders to Facebook Stories to easily rewind videos

How to add sliders to Facebook Stories to easily rewind videos

April 21, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply