Skip to main content

Removes Unwanted Spaces Leading, Trailing And Between Words From The Text String.

In Excel spreadsheet, if you have typed some extra spaces between words. Therefore, you can use TRIM(text) function in order to get rid of those unwanted spaces. This function will erase all extra spaces but except for single spaces between them.

In addition the formula =TRIM(text) function will remove leading and trailing spaces from the text as well.

Syntax

TRIM(text)

How to use formula:

To type:

1] =TRIM into any cell.
2] (
3] Select the cell wanted to be trimmed. (See the image below as example by putting cell A1)
4] )

It's done.

Text: the text in any cell from which you want spaces deleted.

See an image example below for understanding easily.



Did you find this article useful?

See more another tips:
You might like my another blogs:

Comments

Popular posts from this blog

Ctrl+Shift+*(Asterisk) - Excel Keyboard Shortcut Select Active Cells | Exceltip2day

"Ctrl+ Shift+ *(Asterisk)"  What are these keys beneficial for any Excel office user? Hello, everyone. I'm Michael. Welcome you to my Excel tip blog. Today, I'm going to give you the 3 key buttons to select the current region, which are around the cell(s) in the Excel worksheet. Tip Quiz What's the shortcut keys extending the selection to the first cell in an Excel worksheet? Whenever you fill out any data into cells in the Excel worksheet. For any reason, if you want to select all the active cells within it (Spreadsheet). What is the method you are going to do? Do you have your own the "How-To" for handling it? Whether you have one or have not. I am going to share you the three key buttons, shortcut way on a keyboard of your PC, laptop, notebook, tablet ; it is very simple to deal with it. You just press these buttons “Ctrl + Shift + * (Asterisk)” on the keyboard. This shortcut will result in selecting the current active cells th...

5 Alternative Shortcut Ways Minimize Your Excel Workbook, Read It Now! | ExcelTip2Day

"How to Minimize Your Excel Workbook For Window?" Do you use an Excel office program?  If yes, stick around with me. I will show you how to operate your Excel worksheet easily. Hello, I'm Michael Leng. Today I'm very glad to show how to minimize an Excel workbook to an icon. Tip Quiz What to do if your monitor screen upside down? This applies to use for the Excel version 2013, due to I have been using it. And also these methods are for Window program operation. The methods that I have discovered and used, there are 5 ways. 5 methods minimize Excel workbook. ⟴ Use shortcut keys  "Ctrl" and "F9" ⟴   Use shortcut keys  " ALT",  "Spacebar" and "F9" ⟴   Click on the "Minimize workbook" square box. ⟴   Clicking on the "Minimize" command in the "Quick Access Toolbar" ⟴   Use shortcut keys "Window Logo" and "M" To make you more ease seein...

Ctrl+.(Full stop) Excel Trick Move Cursor Clockwise To The Next Corner Of The Selection | Exceltip2day

Hello there. I'm Michael Leng. Today, in my blog "Exceltip2day", I'm going to talk about: "[Ctrl] + [.](F ull stop or decimal point )" Learn how to use in our tips for today. The figure shows how it goes when pressing the Crtl+. (Period)  Tip Quiz What is the shortcut to select all the data in an Excel worksheet? You can use the keyboard shortcut key to move clockwise the selected cells from one to the next one at the square corner (A square corner is a right angle or a rectangle has four square corners. It is a 90-degree turn at the corner each.). If you have a large range selected and you want to see the four corners of the range this shortcut will take you there. It cycles around the four corners. Shortcut method consists of the following steps: Press and hold the [Ctrl] key button. Press the [.] (Full stop) key button. Release both key buttons. Excel shortcut key: To cycle around the four corners of the ce...