Can't find the ampersand character in a character string

teachman

Active Member
Joined
Aug 31, 2011
Messages
321
Hello,

I'm using Excel 2016 and am trying to find the ampersand character (&) in a cells that are just characters. There is no = at the beginning of the string. Something like Victory & International.

I've googled for that and didn't find anything the pertains to my situation.

So, how do I search for the & character in a cell that is not a formula?

Thanks,

George Teachman
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What exactly are you trying to do? Identify where in the cell it exists?

If so, try (for an entry in cell A1):
Code:
=FIND("&",A1)
 
Upvote 0
I'm really just trying to find cells with & in them. I'm not interested in where the & is in the cell.

Thanks,

George Teachman
 
Upvote 0
You could simply wrap it in an IF statement, something like:
Code:
=IF(ISNUMBER(FIND("&",A1)),"Found","None")
 
Last edited:
Upvote 0
Are you trying to find the cells using Ctrl F, a formula, or VBA?
 
Upvote 0
Well, son of b*.

Just to be clear, I didn't have that check box checked. I originally started this trip thinking that the & was one of those special characters and I tried multiple ways of telling Excel that - "&", "*&*", ~& all without the "Match entire cell counts" checked. All failed. It did not occur to me that the & was not a special character. After all, it has a special meaning in Excel.

But, using your suggestion and starting from scratch, I just put the & character, by itself, in the Find field and left everything else unchecked and ran the Find and it worked! Then, just to be sure, I checked the Match Case box and the Find still worked.

This forum is awesome, as always.

Thanks, Rick

George Teachman
 
Upvote 0
Just to be clear, I didn't have that check box checked.
I have always hated the Find and Replace dialog boxes for using a "Options>>" button and hiding so few options. Why? Because Excel remembers the Match Case and Entire Cell Contents options (plus some others) from the last time they were set, whether that setting was manual in the dialog box or via VBA code, so hiding an option that is remembered like that makes no sense. I could understand if there were a lot of options, but after pressing the "Options>>" button, the dialog box does not change size all that much and will fit on anyone's monitor no matter what there pixel count is, so I don't understand why Microsoft chose to hide some of the options like that.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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