Find and replace a specific character, and then all subsequent characters

tthebert

New Member
Joined
Oct 24, 2012
Messages
31
Hi all,

I am new to the forum, and have a question in regard to Find and Replace.

I am trying to take a character from a list of tickers (&) and delete it and all characters after it.

For example,

Ticker
BRK/A&
SPY&fi
GLD&fi
VWO&fi
MDLZ&f
EEM&fi

Notice how the "&" is in different areas of the ticker, and some contain "f" or "fi" afterwards.

So how would I delete the & and all subsequent characters?

Thanks
 

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.
That worked! Thank you very much!
I see you went for a formula solution, but since you originally asked about Find and Replace (making me think you wanted to delete the characters from your original data), here is how to do it using Replace. Select your cells, press CNTRL+H to bring up the Replace dialog box, type &* (an ampersand followed by an asterisk) into the "Find what" field, leave the "Replace with" field empty, press the "Options>>" button and make sure the "Match entire cell contents" checkbox is not checked, then click the "Replace All" button.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,102
Members
449,205
Latest member
ralemanygarcia

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