#1   Report Post  
Posted to microsoft.public.excel.misc
jason2444
 
Posts: n/a
Default Find and replace

got a file in one column is vehicle descriptions and there are note codes in
the description (Reg. Cab2) the #2 is the note. but In the file I have the #2
at the end of the work Cab is smaller and elevated. is there any way to
single out the small elevated numbers so I can do a find and replace to make
it say Reg. Cab (code 2)
the number is not always a 2 it can be any number. So i need a formula that
will grab any smaller elevated number and put the word code in front of it.
Some of the descriptions contain numbers that are standard size so I can't
just do a number search.
S-series/GMC Sonoma - Reg. Cab2
C/K Pickup - Ext. Cab, 2 door3 (incl. Z71)
Silverado/GMC Sierra 1500/2500LD- Ext. Cab, 3 DR8


  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default Find and replace


Jason

The following user defined formula may help.

Function DetectSuperscript(Cell As Range)
For N = 1 To Len(Cell)
If Cell.Characters(Start:=N, Length:=1).Font.Superscript = True
Then
DetectSuperscript = Cell.Characters(Start:=N,
Length:=1).Text
Exit Function
End If
Next N
End Function

This will give you back the superscript character which you can then
use to reassemble your text string.

My email in on my homepage if you need a bit of extra help.


--
mrice


------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=533425

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
How do I find and replace the " mawmawball Excel Discussion (Misc queries) 8 December 22nd 05 01:19 AM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
find replace format neeraj Excel Discussion (Misc queries) 6 September 20th 05 05:50 PM
Find and replace of word causes change of font formatting jwa90010 New Users to Excel 4 July 22nd 05 08:10 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 08:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"