#1   Report Post  
Posted to microsoft.public.excel.misc
JHL JHL is offline
external usenet poster
 
Posts: 56
Default Find and Replace

I receive a text file which I convert some columns to text and others to
general. Then I save the file with a .xls extension.

One column that is saved as text has a character code 31 item then some
additional digits.
Example: 123456-A

I want to delete the special character and leave the rest. Using find and
replace does not find the special character even when I type the code
char(31) in the find box. I notice in a completely new worksheet find and
replace will find these special characters, but I can't get the same result
using this converted text file.

Is this doable using find and replace?

Thank You.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Find and Replace

Create a helper column to the right of the column with the character 31
prefix character and enter the following formula, changing the A1 cell
address to match the first cell in the column:

=RIGHT(A1,LEN(A1)-1)

Copy the formula down the column as far as necessary.

Copy the entire formula column and move to the first cell of column with the
character 31 prefix character and click EDIT, PASTE SPECIAL, click VALUES and
the click the OK command button.

Delete the helper column when done.
--
Kevin Backmann


"JHL" wrote:

I receive a text file which I convert some columns to text and others to
general. Then I save the file with a .xls extension.

One column that is saved as text has a character code 31 item then some
additional digits.
Example: 123456-A

I want to delete the special character and leave the rest. Using find and
replace does not find the special character even when I type the code
char(31) in the find box. I notice in a completely new worksheet find and
replace will find these special characters, but I can't get the same result
using this converted text file.

Is this doable using find and replace?

Thank You.

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
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Find/Replace * W Barbosa Excel Discussion (Misc queries) 4 December 14th 06 04:43 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
find replace cursor default to find box luffa Excel Discussion (Misc queries) 0 February 3rd 05 12:11 AM


All times are GMT +1. The time now is 02:11 PM.

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"