How do you check a cell for a special character?

basbrian

New Member
Joined
Jun 26, 2011
Messages
2
Hi guys,
how do I write an If statement to check to see if the cell contains a wingding squareroot symbol (alt 251) in the cell?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi
Welcome to the board

Wingding has no square root symbol, but has a Tick symbol (like the ones you use on a checkbox) that looks a bit like the square root symbol. That's symbol 252 in Wingdings.

To check if the symbol exists in the cell use:

=ISNUMBER(SEARCH(A1,CHAR(252)))

Remark: this checks if character 252 exists, independently of the font.
 
Upvote 0
Sorry, I just realised that the parameters are not in the correct order.

It should be:

=ISNUMBER(SEARCH(CHAR(252),A1))

so that it finds the character inside the text value in A1.

If the character 252 is the only character in A1, then you can simply use:

=A1=CHAR(252)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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