Special Character(Question Mark enclosed within a box)

ayoungs

New Member
Joined
Jul 6, 2012
Messages
8
I haven't been able to figure this one out yet. I have searched many forum posts but cannot find the answer. I did not create the spreadsheet I am currently working on so I have formatting from PDFs and the internet jumbled into one. I am working on a vba routine to parse my text fields and format them the way I want. The question mark enclosed in a box has shown up so I tried a variety of Characters (10,12,13). I then pasted this character from B1 to B255 with the following formula next to it:

=SUBSTITUTE(B1,CHAR(ROW(A1)),"999")

This worked on none of the rows. I also printed out all of the characters with =CHAR(ROW(A1)), and the character looks exactly like char(12) on my spreadsheet, but that doesn't work to replace it. Has anyone experienced this? From most forum posts I've seen, it seems that clean would get rid of the character (not what I want because this question mark seems to be in place of a bullet). However, clean does not work on this character which means it must be printable. Other posts said char(13) would work as it was a carriage return, but it did not work for me. Any help is greatly appreciated.
 
Yeah I've been messing around with that. It seems to be functioning, but not properly. I will keep messing around to see if I can figure it out. Thanks.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try using the CODE function to figure out which character it is. CODE only works for the first character in a cell, but if you've already copied it by itself to B1, then in C1, the following formula SHOULD give you the ASCII code for it:
Code:
=CODE(B1)

Have you tried copying the character to the Find/Replace dialog? Sometimes that works when nothing else seems to work. Put the problem character in "Find what", and leave "Replace with" blank.

Hi
I was about to create a new thread but thankfully I found this thread with almost same issue I have


my problem is that when I copy paste data from a text based output of an oracle report into excel. it creates special characters like question mark in a box or a blank square in the beginning of the line or the symbol ♀ (Alt+12). this basically messes up my text to column function because those random rows affect the uniformity of the data within the rows.

I cant find and replace those special characters I cant copy them and paste them into find function either,.

it will be something like this, 3 lines ok and fourth one will have this issue and this will repeat itself at random intervals and if the rows are too many then its very cumbersome and annoying because I cant devise an automated tool to convert data through text to columns etc.

[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]04-OCT-15 BSAUSB3_STANDAR USB3 bundle co[/TD]
[/TR]
[TR]
[TD="class: xl65"]04-OCT-15 BSAUSB3_STANDAR USB3 bundle co[/TD]
[/TR]
[TR]
[TD="class: xl65"]04-OCT-15 BSAUSB3_STANDAR USB3 bundle co[/TD]
[/TR]
[TR]
[TD="class: xl65"]♀ 04-OCT-15 BSAUSB3_STANDAR USB3 bundle co[/TD]
[/TR]
</tbody>[/TABLE]



please help in some way to find and replace those boxes at the beginning of the row. not sure if they represent a page break in the text file from where I copied the data because there is nothing there in the text files.
is there any way to teach excel macro to look up ASCII characters like ♀?

problem is that =code() returns 63 for them instead of 12
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,115
Members
452,545
Latest member
boybenqn

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