25
Excel Formulas to Trim the Text into N Number of Words ~ Simple Tricks!!
Assume that you have a long text string, and you need to trim the text string into N number of words only. How could you solve this task in Excel? Today I introduce you to some formulas to solve this problem. Let’s see them below!! Get an official version of ** MS Excel** from the following link: https://www.microsoft.com/en-in/microsoft-365/excel
- If you want to split the text and numbers in Excel, you can use the below formula.
=LEFT(text,FIND(“#”,SUBSTITUTE(text,” “,”#”,N))-1)
- LEFT – It extracts the first character (starting from the left side) or characters from the given string based on the number you specified. Read more on the LEFT function.
- FIND – In Excel, the FIND function is used to find out the one text string inside the other.
- SUBSTITUTE – This function helps to replace existing text with new text in a text string when you want to replace text based on its content, not position. Read more on the SUBSTITUTE function.
- Text – It represents the input value.
- Comma symbol (,) – It is a separator that helps to separate a list of values.
- Parenthesis () – The main purpose of this symbol is to group the elements.
Refer to the below example image.
- Here we will enter the input values in Column B and Column C.
- Now we are going to trim the text into a given number of words.
- Select any cell and type the above-given formula.
- Finally, press the ** ENTER** key, you can get the result as shown below.
In this chapter, we will discuss how to trim the text into N number of words in Excel. I hope that this article is useful. 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. Share your worthwhile feedback in the below comment section.
Thank you so much for visiting *Geek Excel!! **If you want to learn more helpful formulas, check out Excel Formulas *!! **
25