how clean strange symbols(?þ) from Table or range

Ali M

Active Member
Joined
Oct 10, 2021
Messages
290
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hi experts
I face dilemma when I received file by another person .
it shows after name like this :

item?þ
itemþ?
so how can I delete these from all of my table or in used range to become like this
item
is there any macro to clean the cells in table or in used range?
this symbols cause me big troubles with another macros(can't run)
thanks
 
does it work for the table ? because my data in Table.
doesn't seem running the code when press f5.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
in column G,H as I did it in post#19 doesn't change anything .
 
Upvote 0
Try the code below but definitely on a copy of your workbook

VBA Code:
Sub UniKiller()
' amended code originally by Gary's Student
    Dim s As String, temp As String, i As Long, x As Long
    Dim C As String
   
    For x = 1 To Cells(Rows.Count, "A").End(xlUp).Row
    s = Cells(x, 1).Value
   
    temp = ""

    For i = 1 To Len(s)
        C = Mid(s, i, 1)
        If AscW(C) > 31 And AscW(C) < 127 Then
            temp = temp & C
        End If
    Next i
    Cells(x, 1).Value = temp
    Next x
End Sub
 
Upvote 0
ok it works just for the column A but should be up to column F .
and there is problem will clear the word for header in A1 shouldn't do that . just delete unwanted symbols .
thanks again
 
Upvote 0
and there is problem will clear the word for header in A1
What exactly is in the header as letters and numbers should have remained? and the same question for the other columns
 
Upvote 0
in A1= "BALANCE" but after delete non printable character will also clear BALANCE . should not do that
the columns in TABLE A,B,C,D,E,F all of the headers are letters .
 
Upvote 0
It doesn't clear the word BALANCE for me, is it in English?
 
Upvote 0
Are there Arabic characters in the main body of columns A:F?
 
Upvote 0

Forum statistics

Threads
1,215,890
Messages
6,127,598
Members
449,388
Latest member
macca_18380

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top