Searching for Special Characters

Dan Wilson

Active Member
Joined
Feb 5, 2006
Messages
448
Office Version
  1. 365
Platform
  1. Windows
Good day. I am using Excel in Office 365 (updated) running on Windows 10 Home. I have a worksheet that contains song titles and artist names. Column B holds the artist names. There is an Artist whose name begins with a question mark (? And The Mysterians). In another worksheet I have created Column A to house the first letter of each artist title found in the song worksheet (DB). IE: =LEFT(DB!$B29,1) This formula is used to extract the first letter of each artist from 4500 songs. Then I created Column B to count the number of cells that contain the letters A thru Z, numbers 1 thru 9, and special characters (" and ?). IE: =COUNTIF($A:$A,"A") The search for letters, numbers and the " all work. The search for ? (=COUNTIF($A:$A,"?") gives me a total of 4500 meaning that it counted everything. Is there a way to make the search work? I appreciate any help.
Thank you,
Dan Wilson...
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
Try
Excel Formula:
=COUNTIF($A:$A,"~?")
 
Solution

Dan Wilson

Active Member
Joined
Feb 5, 2006
Messages
448
Office Version
  1. 365
Platform
  1. Windows
Try
Excel Formula:
=COUNTIF($A:$A,"~?")
Good day Fluff. You did it again! Thank you for responding. It took me a while to find that key (~), but it worked. I suspect that it will work for other special keys aa well (+,-,/,*). This one is now closed.
Thank you,
Dan Wilson...
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,136,301
Messages
5,674,963
Members
419,536
Latest member
Mohammed Jaffer

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
Top