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.
Want to learn how to unprotect Excel worksheet? Follow this simple guide to master this important skill in Excel. You can protect an Excel worksheet with or without a password. This helps keep your data…
Microsoft Excel “NOW” function is used to get the current Date and Time. It is very useful function and can be used in many ways.
You need to know how to insert and use the degree symbol in a cell.
Let me explain why this is important. Yesterday, I was working with temperature data, and it was crucial to use the degree symbol to indicate Celsius and Fahrenheit.
Many tasks in Excel require comparing data in different cells. To do this, Excel offers six logical operators, also known as comparison operators. This tutorial will help you understand how these operators work and how to write efficient formulas for data analysis
https://youtu.be/HmJL_y93pAs WEEKNUM function helps to calculate the week number of the given date in a year. It considers 1st January as first week by default and through the output for the given input date. Syntax:…
This tutorial shows you three easy ways to add hyperlinks in Excel. You will learn how to insert, change, and remove hyperlinks in your worksheets. It also explains how to fix links that don’t work.
Hyperlinks are often used on the internet to move between websites. In Excel, you can create links like that too. You can make a link to another cell, a different sheet, or even another workbook. You can also link to open a new Excel file or start an email message. This guide will show you how to do all of this in Excel 2016, 2013, 2010, and older versions.