Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John C
 
Posts: n/a
Default How do I find and replace a symbol in an excel spreadsheet


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

How did you insert it?

Is it in a formula or is it just typed (or inserted via Insert|Symbol)?

You can use Chip Pearson's Cell View addin to find out the character it is:
http://www.cpearson.com/excel/CellView.htm

If you're lucky, you'll be able to do Edit|Replace and hit and hold the alt-key
while you type the ASCII representation (like alt-0010 for alt-enter (line feed
in a cell)).

And replace it with the symbol you want.

If you're unluck, you could use a macro:

Option Explicit
Sub cleanEmUp()

Dim myBadChars As Variant
Dim myGoodChars As Variant
Dim iCtr As Long

myBadChars = Array(Chr(13))

myGoodChars = Array(Chr(9))

If UBound(myGoodChars) < UBound(myBadChars) Then
MsgBox "Design error!"
Exit Sub
End If

For iCtr = LBound(myBadChars) To UBound(myBadChars)
ActiveSheet.Cells.Replace What:=myBadChars(iCtr), _
Replacement:=myGoodChars(iCtr), _
LookAt:=xlPart, SearchOrder:=xlByRows, _
MatchCase:=False
Next iCtr

End Sub

(I replaced the CarriageReturn with the Tab character in this example.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Another way using a helper cell:

=substitute(a1,char(10),char(9))

and copy|paste special values over the original cell.

John C wrote:

--

Dave Peterson
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
Excel - Find & Replace text in a string bklim Excel Worksheet Functions 1 June 14th 05 06:42 AM
find and replace links in Excel 2003 MAndrews Excel Worksheet Functions 2 June 3rd 05 06:18 PM
how to find and replace a symbol in my worksheet TC Excel Discussion (Misc queries) 3 May 3rd 05 06:29 PM
Find and replace data in an Excel chart object Cawen Charts and Charting in Excel 2 March 31st 05 06:47 PM
macro to Find Replace in Excel Nurddin Excel Discussion (Misc queries) 7 January 3rd 05 04:29 AM


All times are GMT +1. The time now is 03:14 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"