ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I remove a non-printing character from a cell? (https://www.excelbanter.com/excel-discussion-misc-queries/180364-how-can-i-remove-non-printing-character-cell.html)

jcnmilton

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

Jim Thomlinson

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


Mifty

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



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com