Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JERRY8
 
Posts: n/a
Default 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?
  #2   Report Post  
Andy Brown
 
Posts: n/a
Default

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


  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

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?


  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing green triangle in cell Shooter Excel Worksheet Functions 4 May 7th 23 11:45 AM
Removing only certain data in a cell Juan Excel Discussion (Misc queries) 4 December 17th 04 03:11 AM
Removing a drop down list from a cell Cindy Excel Discussion (Misc queries) 8 December 16th 04 11:27 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 03:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"