Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I remove a non-printing character from a cell?

I have a spreadsheet that was saved as a text file from HTML and opened with
excel. I then use Text to Columns to parse the information into cells.
However, some lines include a leading non-printing character that screws up
the Text to Columns by moving everything on that line over 1 space. How can
I remove only that leading non-printing character without changing the
spacing the rest of the line? I have tried using CLEAN - but all the spacing
is changed.
--
JCN
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How can I remove a non-printing character from a cell?

How about using mid, left and clean

=clean(left(a1, 1)) & mid(A1, 2, 255)
--
HTH...

Jim Thomlinson


"jcnmilton" wrote:

I have a spreadsheet that was saved as a text file from HTML and opened with
excel. I then use Text to Columns to parse the information into cells.
However, some lines include a leading non-printing character that screws up
the Text to Columns by moving everything on that line over 1 space. How can
I remove only that leading non-printing character without changing the
spacing the rest of the line? I have tried using CLEAN - but all the spacing
is changed.
--
JCN

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default How can I remove a non-printing character from a cell?

Hi,

What about this macro - trimall by David McRitchie

Here's the link scroll down to trimall and there are also details of where
to put the macro etc
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Cheers

--
Mifty


"jcnmilton" wrote:

I have a spreadsheet that was saved as a text file from HTML and opened with
excel. I then use Text to Columns to parse the information into cells.
However, some lines include a leading non-printing character that screws up
the Text to Columns by moving everything on that line over 1 space. How can
I remove only that leading non-printing character without changing the
spacing the rest of the line? I have tried using CLEAN - but all the spacing
is changed.
--
JCN

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
Remove ' character from copied excel cell to match data Syndrome Excel Discussion (Misc queries) 9 March 7th 07 05:18 PM
How do I remove a text character from an excel cell? Mark Excel Worksheet Functions 3 October 14th 06 12:21 AM
remove one character from a cell if a condition is met Jeff Excel Discussion (Misc queries) 15 March 13th 06 02:41 PM
How to remove or replace a carriage return character in a cell? Patty Excel Discussion (Misc queries) 2 July 26th 05 06:25 PM
How do I remove all text in a cell after a specific character? Erik Millerd Excel Worksheet Functions 1 July 13th 05 03:17 PM


All times are GMT +1. The time now is 04:06 AM.

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"