3 Quick Ways to Replace Text After Specific Character

Every now and then we may find ourselves in a situation where we want to replace a text with some specific character or word. We sometimes need to update our data collection in companies, business records, school result records, etc. So often we may want to change some text in the records to bring the update. In this article, we are going to learn three easy and efficient ways in Excel to replace text after a specific character.

How to Replace Text After Specific Character


๐Ÿ“ Download Excel File

Download the practice file from here.


Learn to Replace Text After a Specific Character in Excel with These 3 Methods

Here we will discuss 3 ways in Excel to replace text after a specific character. Letโ€™s assume we possess a dataset of some international employees of a company. But now we are trying to modify the full address record. We want to put โ€œinโ€ in front of the country names instead of the comma. For our demonstration purpose, the sample datasheet is as follows.

Dataset to replace text after a specific character

method

1. Applying Find & Replace Tool

In this section, we are going to learn how to use the FIND & REPLACE tool in Excel to replace text after a specific character. So the steps are as follows.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Firstly we select our data range.
  • After that, we go to the Editing option.
  • Following that we select the Find & Select option.
  • Finally, we select the Replace option.

Use of the Find & Replace tool

  • We put a comma in the Find what box.
  • We write โ€œinโ€ in the Replace with box.
  • After that, we select Replace All option.

Replacement of the text

  • We get a dialogue box with the confirmation.

Confirmation dialogue box

  • Finally, we get our result in column F.

Text after Replacement

๐Ÿ“• Read More: 3 Easy Ways to Find and Replace in Multiple Excel Files

method

2. Employing REPLACE Function

Here we will discuss how we can use the REPLACE function in Excel to replace text after a specific character. Therefore the breakdown steps are as follows.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Firstly we go to the formula box of cell D6 and put this formula.

=REPLACE(C6,30,1,โ€ in โ€œ)

๐Ÿ”จ Formula Breakdown

๐Ÿ‘‰ย  Here C6 denotes our old text.

๐Ÿ‘‰ย  30 is the character number from the left after which we want to make a change.

๐Ÿ‘‰ย  1 means we want to replace only one character.

๐Ÿ‘‰ย  โ€ in โ€ is our replaced text.

  • We hit Enter and get the result in cell D6.

Using the Replace function

  • Just like cell D6, we write this formula in cell D7.

=REPLACE(C7,20,1,โ€ in โ€œ)

  • We get the result in cell D7.
  • We do a similar thing in the other two cells and get results.

Use of the Replace function

๐Ÿ“• Read More: 7 Ways to Find and Replace Multiple Values in Excel

method

3. Applying SUBSTITUTE Function

In our final method here we will learn the application of the SUBSTITUTE function in Excel to replace text after a specific character. So the step-by-step procedures are as follows.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • First, we go to the cell D6 formula box and type this formula.

=SUBSTITUTE(C6,โ€,โ€,โ€ in โ€œ)

๐Ÿ”จ Formula Breakdown

๐Ÿ‘‰ย  Here C6 is the text we want to update.

๐Ÿ‘‰ ย โ€œ,โ€ denotes the specific character in C6 that we want to change.

๐Ÿ‘‰ ย โ€ in โ€ is our replaced text.

Using the substitute function

Use of the Fill handle tool

  • Finally, we get our result in column D.

Replaced text

๐Ÿ“• Read More: How to Find and Replace Using Wildcards in Excel


How to Remove Text After Specific Character in Excel

In this section, we will learn how to remove texts after a certain character using the Find & Select option. So the steps are as follows.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Firstly we select the necessary data range.
  • Following that, we go to the Editing option.
  • After that, we select the Find & Select option.
  • Finally, we select the Replace option.

Use of the Find & Select tool

  • Firstly we put a comma with the asterisk symbol in the Find what box.
  • Then we keep it blank in the Replace with box.
  • After that, we select the Replace All option.

Replacement of the text

  • We will see that text after the comma is removed.

Replaced text

๐Ÿ“• Read More: 5 Tricks to Insert Comma Between Words in Excel


How to Remove Text After Space in Excel

In this particular section, we will discuss how to remove the text after space in Excel. Therefore the steps are as follows.

โฌ‡๏ธโฌ‡๏ธ STEPS โฌ‡๏ธโฌ‡๏ธ

  • Firstly we go to the cell D6 formula box and write this formula.

=LEFT(C6,FIND(โ€ โ€œ,C6)-1)

๐Ÿ”จ Formula Breakdown

๐Ÿ‘‰ย  Here FIND(โ€ โ€œ,C6)-1 returns us a number of characters after the first space.

๐Ÿ‘‰ย  LEFT(C6,FIND(โ€ โ€œ,C6)-1) gives us the specific text from the left at the character number.

Using the left & find functions

  • After that, we use the Fill Handle tool to drag the formula.

Using the fill handle tool

  • Finally, we get the result in column D.

Removed texts after the first space.


๐Ÿ“„ Important Notes

๐Ÿ–Š๏ธย  Whenever we use Excel functions we have to be very careful about the function argument.

๐Ÿ–Š๏ธย  When we use the REPLACE function we have to put the start number of the character properly.


๐Ÿ“ Takeaways from This Article

๐Ÿ“Œย  We can use the FIND & REPLACE tool in Excel to replace text after a specific character.

๐Ÿ“Œย  REPLACE function is another way in Excel to replace text after a specific character.

๐Ÿ“Œย  Also we can use the SUBSTITUTE function in Excel to replace text after a specific character.


Conclusion

In this article, we have learned three different ways in Excel to replace text after a specific character. We can use the FIND & REPLACE tool for this purpose. Apart from this, we can also use Excel functions like REPLACE, SUBSTITUTE, etc. Users can use whatever way they feel comfortable with. If you have any queries regarding this particular article you can simply put your comment in our comment box. The writer will try to come up with a solution. If you want to explore further excel related topics and their solutions please visit our website www.Excelden.com.


Related Article

(Visited 34 times, 1 visits today)
Md. Ahaduzzaman

Md. Ahaduzzaman

Hello everyone i'm Md.Ahaduzzaman.I am a civil engineering graduate from BUET.I am enthusiastic and highly motivated to always learn something new to broaden my horizon and find my lacking. Hopefully my Articles will benefit you to understand and overcome your problem.

We will be happy to hear your thoughts

Leave a reply

ExcelDen
Logo