I need a formula to find a string in a string cell and extract that string and all the characters that come after it (I don't have TextBefore/After)

Cozkincaud

New Member
Joined
Apr 18, 2019
Messages
15
Hi,

I only have Office Professional 2021 so I can't use TEXTBEFORE or TEXTAFTER to extract text strings from string cells.

I need to find a string in a string cell and extract that string and all the characters that come after it. Here are some of the string cells I need to extract strings from. In these cells I want to extract sthe string "in" and every character after it.

1739995371705.png


In the case of the first cell ("Edward Waldegrave esquire in londes") I need to find the string "in", extract it along with all the characters that come after it (" londes"). The string I will be searching for will always be different.

I found plenty of formulas for extracting text strings after a specific character, but none for specific strings, or at least none that I can get to work (mid/right with find/search). Note: I need to extract the search string (e.g. "in" as in "in lands" in the cell string, "Edward Waldegrave esquire in londes") as well as all the text that comes after it.

My thanks in advance for your advice and suggestions.
 
Thanks for the suggestion. It will work, but it's not what I need. As I wrote in my post, the text I will be searching for changes. In this case I can use "in". In another case I might need to use "to". My mistake, I shouldn't have used the same example in all the cells.
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,045
Members
453,772
Latest member
aastupin

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