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.
This video will help you to understand how you may use conditional formatting to highlight row based on conditions. Subscribe us for more updates
WEEKDAY function applies to a Date and returns the output for Day of the week. The output of the function varies from 0 to 7
While passwords in Excel help protect data, there are times when you may need to remove them to make changes, like modifying the workbook structure or editing data. This tutorial explains six methods to remove…
MIN function is used to get the smallest number in range or list of values.MIN function has one required i.e. number1 and optional argument i.e. [number2]
In Excel, a line break lets you finish one line of text and begin another within the same cell. It helps create separate lines of information without needing to move to a different cell.
Excel Function COUNTIF COUNTIF Excel Function is also one of the most used function in excel. This helps the user to calculate the number of counts based on single logic given by the user. You…