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 |
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 |
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