#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Clean Function


Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Clean Function

CLEAN doesn't remove spaces. Presumably what you think are spaces are really
unprintable characters.

Dave
--
Brevity is the soul of wit.


"cassy269" wrote:


Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Clean Function

Could be the hard space character CHAR(160) beloved of website coders
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dave F" wrote in message
...
CLEAN doesn't remove spaces. Presumably what you think are spaces are
really
unprintable characters.

Dave
--
Brevity is the soul of wit.


"cassy269" wrote:


Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Clean Function

Don't believe "Clean" removes Char(160).

Must be something else making those spaces.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Bernard Liengme" wrote in message
...
Could be the hard space character CHAR(160) beloved of website coders
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dave F" wrote in message
...
CLEAN doesn't remove spaces. Presumably what you think are spaces are
really
unprintable characters.

Dave
--
Brevity is the soul of wit.


"cassy269" wrote:


Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Clean Function


This is what happens...

John*Doe (with * being a non printable character)

Using the clean function removes the * and gives me this

JohnDoe

I want to have

John Doe

Can I do that?

Replace the nonprintable character with a space?


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Clean Function

Hey Cassy

Quite difficult to achieve. However if you have one or 2 nonprintable
characters then you can use the find and replace function.

ASsume: C20 has ja3@ja if @ is hte one which you wanna get rid off and get a
space. Then copy that @ and paste it into an empty cell say B18, use the
formula in c21 =REPLACE(C20,FIND(B18,C20),1," ")

This should give you the result: ja3 ja

PS: This would be good if you have few non printable characters which you can
make a note of.

Rgds
Parvez

cassy269 wrote:
Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean functio
to remove. However, when I remove them it also removes the spac
between the two words in my text string. Is there a way to clean th
nonprintable characters and replace those characters with a spac
character instead of nothing

--
cassy26

Posted from - http://www.officehelp.i


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200701/1

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Clean Function


Cant do find and replace as it is not a character that can be typed or
copied...
it is also not in the same place in each cell which eliminates the
possiblity of simply using left, right or mid functions :(


--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Clean Function

Cassy

If it is the 160 character you can replace it using EditReplace

What: use Alt + 0160(on numpad)

With: space


Gord Dibben MS Excel MVP

On Thu, 18 Jan 2007 23:58:04 +0530, cassy269
wrote:


Cant do find and replace as it is not a character that can be typed or
copied...
it is also not in the same place in each cell which eliminates the
possiblity of simply using left, right or mid functions :(


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Clean Function

If it's really that non-breaking space:

=substitute(a1,char(160)," ")
or
maybe...
=trim(substitute(a1,char(160)," "))


cassy269 wrote:

Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?

--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in


--

Dave Peterson
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Clean Function

Ps. Chip Pearson has a very nice addin that will help determine what that
character(s) is:
http://www.cpearson.com/excel/CellView.htm

Then you can use that info in the correct formula.

Dave Peterson wrote:

If it's really that non-breaking space:

=substitute(a1,char(160)," ")
or
maybe...
=trim(substitute(a1,char(160)," "))

cassy269 wrote:

Hello - I need to "Clean" some data.

I have some nonprintable characters that I can use the clean function
to remove. However, when I remove them it also removes the space
between the two words in my text string. Is there a way to clean the
nonprintable characters and replace those characters with a space
character instead of nothing?

--
cassy269
------------------------------------------------------------------------
cassy269's Profile: http://www.officehelp.in/member.php?userid=6142
View this thread: http://www.officehelp.in/showthread.php?t=1323006

Posted from - http://www.officehelp.in


--

Dave Peterson


--

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
Fill Function to next Column shital shah Excel Worksheet Functions 0 August 16th 06 02:53 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 07:47 PM.

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

About Us

"It's about Microsoft Excel"