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 an “IF function” there will be two output i.e. TRUE or FALSE since either the statement will be “TRUE” or “FALSE”. If the statement is matching or correct, then output will be “TRUE” or if the statement is not matching or not correct then the output will be “FALSE
UPPER function is used for changing the text/string to UPPER case in Microsoft Excel. The output of the function returns value in new cell.
Watch: How to use VLOOKUP Function in Excel? What is VLOOKUP Function? The VLOOKUP function in Excel searches for a value in a table and returns a corresponding value from another column in the same row…
COUNTA function is used to get the total count of Any-value or Non-Blanks in range. COUNTA Function has one required and optional argument: value1, value2
Watch Video: Rand and Randbetween Excel Functions Generate Random Numbers using Excel Functions We have got many instances where we needed to generate a random database or values. “RAND function” is very useful for users…
Watch: How to use WORKDAY & WORKDAY.INTL Function in Excel? What is WORKDAY Function? The WORKDAY function in Excel calculates a date that is a specified number of working days before or after a given date. It…