Stripping out certain words from start of cells

qetzel

New Member
Joined
Dec 17, 2013
Messages
10
Hi
I'm new to this forum, and hope someone might be able to help me. I have a range of about 5000 rows, each representing a title of an article, and I need to be able to strip out the words "The ", "Les", "A ", "Le ", "La " or "An " if they are at the start of each title.

So e.g. I start with:
The man in the moon
Les Miserables
Rage over October
A slight affair

and I finish with:
man in the moon
miserables
rage over October
slight affair

I've faffed around with mids and finds and substitutes but am running into problems because the strings I want to replace are all of different length. I'd be very grateful for any help, ideally which doesn't involve macros.
 
Glad you got it working, but my formula should work regardless. The first IF statement tests the text before the first space. If this isn't equal to one of the forbidden words, it returns the first word.

Hi Neil, oh yes I should have examined it more closely: in fact it was falling over because it started with a space - some of the cells weren't TRIMMED I realise now...
Thanks again - I will certainly use this great forum again!
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,215,368
Messages
6,124,523
Members
449,169
Latest member
mm424

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