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  

Spaces not being recognized be excel as spaces!! Help!



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2004, 11:22 PM
Kevin
external usenet poster
 
Posts: n/a
Default Spaces not being recognized be excel as spaces!! Help!

I have data imported into excel. One of the columns
contains "machine numbers", but it is a "fixed width"
column of 15 characters (comes from the database where I
import from). The "machine numbers" are various lengths,
so the remaining 15 characters appear to be spaces or
blanks - the only problem is that excel doesn't recognize
them as spaces...but within a cell I can arrow right or
left and select these "spaces" and delete them but none of
the formulas or functions work to get rid of them...even
using find/replace does not work...any ideas???????
  #2  
Old May 10th, 2004, 11:35 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Spaces not being recognized be excel as spaces!! Help!

Try

=IF(ISERROR(--RIGHT(A1)),--SUBSTITUTE(A1,RIGHT(A1),""),A1)



--

Regards,

Peo Sjoblom

"Kevin" wrote in message
...
I have data imported into excel. One of the columns
contains "machine numbers", but it is a "fixed width"
column of 15 characters (comes from the database where I
import from). The "machine numbers" are various lengths,
so the remaining 15 characters appear to be spaces or
blanks - the only problem is that excel doesn't recognize
them as spaces...but within a cell I can arrow right or
left and select these "spaces" and delete them but none of
the formulas or functions work to get rid of them...even
using find/replace does not work...any ideas???????




  #3  
Old May 10th, 2004, 11:42 PM
external usenet poster
 
Posts: n/a
Default Spaces not being recognized be excel as spaces!! Help!

I tried but it just gives me #VALUE! error! Want me to
email you a sample? This is the most bizarre thing...
  #4  
Old May 10th, 2004, 11:44 PM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default Spaces not being recognized be excel as spaces!! Help!

If by 'imported" you mean pasted in from a web page, they're probably
CHR(160)s ( 's, or non-breaking spaces, in HTML).

You can use David McRitchie's TRIMALL macro to remove them:

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


In article ,
"Kevin" wrote:

I have data imported into excel. One of the columns
contains "machine numbers", but it is a "fixed width"
column of 15 characters (comes from the database where I
import from). The "machine numbers" are various lengths,
so the remaining 15 characters appear to be spaces or
blanks - the only problem is that excel doesn't recognize
them as spaces...but within a cell I can arrow right or
left and select these "spaces" and delete them but none of
the formulas or functions work to get rid of them...even
using find/replace does not work...any ideas???????

  #5  
Old May 11th, 2004, 12:05 AM
Kevin
external usenet poster
 
Posts: n/a
Default Spaces not being recognized be excel as spaces!! Help!

Awesome, that worked, thanks very much!!!
 




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


All times are GMT +1. The time now is 05:18 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.