A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Removing extra spaces from a column of cells



 
 
Thread Tools Display Modes
  #1  
Old August 12th, 2004, 06:53 PM
Sandie
external usenet poster
 
Posts: n/a
Default Removing extra spaces from a column of cells

How do I remove the extra spaces from an entire column? I am trying to
compare Column B to Column A for differences, and having those differences
extracted to Column C. However, because there are extra spaces in some of
the cells within each column, it is returning a FALSE statement. Does anyone
have any idea how to get rid of these spaces so that my comparison can be
completely accurate?
Thank you so much!!
  #2  
Old August 12th, 2004, 06:59 PM
Sandie
external usenet poster
 
Posts: n/a
Default Removing extra spaces from a column of cells

By the way, my data contains both Alpha and numeric: For example: AAL16,
BCA45, etc.......

"Sandie" wrote:

How do I remove the extra spaces from an entire column? I am trying to
compare Column B to Column A for differences, and having those differences
extracted to Column C. However, because there are extra spaces in some of
the cells within each column, it is returning a FALSE statement. Does anyone
have any idea how to get rid of these spaces so that my comparison can be
completely accurate?
Thank you so much!!

  #3  
Old August 12th, 2004, 07:04 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Removing extra spaces from a column of cells

Hi
see:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Regards
Frank Kabel
Frankfurt, Germany


Sandie wrote:
How do I remove the extra spaces from an entire column? I am trying
to compare Column B to Column A for differences, and having those
differences extracted to Column C. However, because there are extra
spaces in some of the cells within each column, it is returning a
FALSE statement. Does anyone have any idea how to get rid of these
spaces so that my comparison can be completely accurate?
Thank you so much!!

  #4  
Old August 12th, 2004, 07:13 PM
Cutter
external usenet poster
 
Posts: n/a
Default Removing extra spaces from a column of cells

The TRIM function removes all spaces except one space between words. It
sounds like that is the one you're looking for.

Maybe you could make two helper columns, in D and E. In D1 put
=TRIM(A1) and in E1 put =TRIM(B1). Copy both D1 and E1 down as far as
you need to go. Then compare the values in Col D against the values in
Col E.


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My data table has extra spaces Jeff Crocker New Users 3 July 18th, 2004 09:08 PM
run through a column and copy the cells that aren't blank Homey Worksheet Functions 4 January 5th, 2004 02:36 PM


All times are GMT +1. The time now is 09:00 AM.


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