Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TGV TGV is offline
external usenet poster
 
Posts: 63
Default Find Special Characters Using Function

Hi,

I am having datas in A Column in the below mentioned manner.

A
123'658
346*785
569}912
265879
792{1039
1015"1166
564897
1238@1293

Now I want a function that should check the cell for special characters.
Some of the cells does not consist the special characters, So I have to take
the data separately what are all the cells contains special characters. Is
it possible? If so please suggest me.

Awaiting for your reply.

Thanks in Advance!

TGV

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Find Special Characters Using Function

TGV,

The following custom function will return JUST the special characters:

Public Function special(rng As Range) As String

Dim i As Integer
Dim strNew As String

For i = 1 To Len(rng.Value)
If Not (Mid(rng.Value, i, 1) = "a" And Mid(rng.Value, i, 1) <= "z")
And Not (Mid(rng.Value, i, 1) = "A" And Mid(rng.Value, i, 1) <= "Z") And _
Not (Mid(rng.Value, i, 1) = "0" And Mid(rng.Value, i, 1) <=
"9") Then
strNew = strNew & Mid(rng.Value, i, 1)
End If
Next

special = strNew

End Function

--
Regards,
Eddie
http://www.HelpExcel.com


"TGV" wrote:

Hi,

I am having datas in A Column in the below mentioned manner.

A
123'658
346*785
569}912
265879
792{1039
1015"1166
564897
1238@1293

Now I want a function that should check the cell for special characters.
Some of the cells does not consist the special characters, So I have to take
the data separately what are all the cells contains special characters. Is
it possible? If so please suggest me.

Awaiting for your reply.

Thanks in Advance!

TGV

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 Special Characters Using Function TGV Excel Discussion (Misc queries) 4 May 22nd 09 08:50 AM
Find Special Characters [email protected] Excel Worksheet Functions 2 November 1st 07 04:43 PM
find special characters Joe Ventre Excel Discussion (Misc queries) 1 July 27th 06 08:07 PM
How to find and replace in Excel for special characters? Jill Excel Discussion (Misc queries) 1 May 25th 06 04:29 PM
How do I find replace special characters? zzapper Excel Discussion (Misc queries) 1 June 27th 05 06:05 PM


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