TRIM function is used to remove the additional spaces (i.e. spaces before/after/between the words) except for single space between words.
text argument [Required] is used to give the text or cell reference for which additional spaces to be removed
TRIM Function has only one “Required” arguments i.e. text
There is only one argument in the Trim function, which is below mention.
=Text(Cell Value / Text)
Here we have some examples, where “Column A” has various scenarios there is a problem of spaces. Words doesn’t have proper spacing it looks untidy and “Column B” shows the output of the function. Where formula of TRIM is applied and we can see after applying the formula extra spaces removes The explanation is also provided in Column “C”.
Generally when we collect data in excel from another application or any database like Server, Oracle, or HTML, we face various issues for line breaking with extra space; we can say that double line issue or wrap text issue, and also ever include with a special character which is not removed with only trim. So we can use a trim function with a clean function for such type situations. Example given below:-
In this type of scenario will use TRIM CLEAN Formula.
Formula =TRIM(CLEAN(A16))
With the help of the TRIM Clean formula, the data will be cleaned, removing all spaces, and correcting the positions of words.
TRIM function is very advantageous in many ways. It helps for the document imported from any other sources and data is not correctly synchronized.
Removing spaces in available strings manually (one by one) is very difficult. TRIM Function helps apply in large databases at once, makes the work easy, saves time, and increases efficiency.
In this tutorial, we will explore the CHOOSEROWS function in Excel 365 and how to use it in real life. Imagine you have a big Excel sheet with hundreds of rows, and you need to…
SMALL function is used to get the Smallest k-th value from the range.
SMALL Function has two required arguments i.e. array, and k
SUMIF function is used to get the “total sum” for number of times the criteria across range is met. SUMIF Function has two required arguments.
Watch: How to use TODAY & NOW Function in Excel? What is TODAY Function? The TODAY function in Excel returns the current date in a serial number format. Click here to Read full Tutorial What is…
Generate Random Numbers in Excel Using RAND We have got many instances where we needed to generate a random database or values. Rand function is very useful for the users who creates random database for…
Discover free videos and tutorials to master Excel formulas and functions. Practice directly in our Online Excel Practice Files without downloading anything. Have questions? Drop them in the comments. Let’s begin! Basic Excel Formulas and…