Removing a space within a cell
I exported data that automatically adds a space before the value in each
cell. How do I remove the space without clicking in each individual cell and deleting the space? |
I exported data that automatically adds a space before the value in each
cell. How do I remove the space without clicking in each individual cell and deleting the space? Use =TRIM(A1) or =RIGHT(A1,LEN(A1)-1) Copy the results, then Edit -- Paste Special (Values). Rgds, Andy |
Jerry
=TRIM(A1) will remove extra spaces. Drag/copy as far as you need. Unless they are html non-breaking spaces, for which there are other methods. See David McRitchie's TrimAll code. http://www.mvps.org/dmcritchie/excel/join.htm#trimall Gord Dibben Excel MVP On Wed, 1 Dec 2004 16:49:06 -0800, JERRY8 wrote: I exported data that automatically adds a space before the value in each cell. How do I remove the space without clicking in each individual cell and deleting the space? |
Another way:
Select your data (single column at a time) data|text to columns fixed width remove any lines that excel guessed plop it right back where you got it. This trims both the leading and trailing, but leaves internal spacing alone. JERRY8 wrote: I exported data that automatically adds a space before the value in each cell. How do I remove the space without clicking in each individual cell and deleting the space? -- Dave Peterson |
All times are GMT +1. The time now is 10:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com