How to remove spaces between cells?

How can you remove all of the unused spaces in an excel file?

  • I have run into a problem and do not understand the instructions that I have found. I uploaded a .txt file of addresses. There are a total of 44k. The problem is that when the file was converted to a .xls file, a few of the columns contain numerous spaces after the text. I have a feeling that these were tabs done in the .txt file. When I go to center a column, lets say the street address column, all of the text will line up in the "center", but about 10 spaces to the left because of the 10 blank spaces at the end of each street address. How can I automatically remove all of the unused spaces or spaces over 2 spaces long? I've tried to go through the instructions that I found, but am getting no where. Can someone please give me basic instructions? Say I'm 10 years-old and this is my first time with Excel. Thank You

  • Answer:

    Next to your list of data (col A) enter in B2 =TRIM(A2) this will get rid of the unwanted spaces. There is also a CLEAN command which will get rid of all the non printing characters as well. Use the data ibn col B in any formula or printouts I used row 2 as the start of the list to allow for column labels in row 1.

chris at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Do Find & replace (Ctrl-H). You will see two boxes, in the upper box put two spaces, in the lower box put nothing. Click "Replace all". Repeat until there are no more double spaces to replace.

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.