Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have an imported table and several of the fields have extra line
feeds or other hidden characters. This makes it impossible to sort the table. Is there any sort of way to trim off these extra characters at the spreadsheet level so I can do a sort? I can write a custom function to remove anything that's not A-Z,0-9 but if there's a feature at the spreadsheet level, that would be great. Any ideas?! Thanks. John |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi John,
Maybe this is of use to you: http://www.mvps.org/dmcritchie/excel/join.htm#trimall -- Kind regards, Niek Otten Microsoft MVP - Excel "robotman" wrote in message oups.com... |I have an imported table and several of the fields have extra line | feeds or other hidden characters. This makes it impossible to sort | the table. | | Is there any sort of way to trim off these extra characters at the | spreadsheet level so I can do a sort? I can write a custom function | to remove anything that's not A-Z,0-9 but if there's a feature at the | spreadsheet level, that would be great. | | Any ideas?! | | Thanks. | | John | |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
You can use function TRIM or/and CLEAN. TRIM removes extra spaces around text (all spaces before and after text and leaves only one space between words. CLEAN removes any nonprinting characters. So, you'll get some extra columns but your imported data will be filtered. sasa "robotman" wrote in message oups.com... I have an imported table and several of the fields have extra line feeds or other hidden characters. This makes it impossible to sort the table. Is there any sort of way to trim off these extra characters at the spreadsheet level so I can do a sort? I can write a custom function to remove anything that's not A-Z,0-9 but if there's a feature at the spreadsheet level, that would be great. Any ideas?! Thanks. John |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Not entirely true, clean does not remove trailing html char 160 which seems
to be fairly common when data is copied from a web site -- Regards, Peo Sjoblom "Sasa Stankovic" wrote in message ... Hi, You can use function TRIM or/and CLEAN. TRIM removes extra spaces around text (all spaces before and after text and leaves only one space between words. CLEAN removes any nonprinting characters. So, you'll get some extra columns but your imported data will be filtered. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
View hidden characters | Excel Discussion (Misc queries) | |||
Viewing hidden characters | Excel Discussion (Misc queries) | |||
How do you trim characters? | Excel Worksheet Functions | |||
Help! Can't get rid of hidden characters | Excel Discussion (Misc queries) | |||
trim a string by specific number of characters | Excel Discussion (Misc queries) |