Formula to extract particular range of text from a cell

faizzsheikh

New Member
Joined
May 10, 2013
Messages
19
Someone please help me with the below scenario:


A1: The War of Art by Steven Pressfield and Shawn Coyne (Nov 11, 2011) - Kindle eBook
A2: Do the Work by Steven Pressfield (Apr 20, 2011) - Kindle eBook
A3: How to Get the Raise You Want in 90 Days or Less: A Step-by-step Plan for Making It Happen by Kathy M. Barnes and Robyn Feldberg (Jan 30, 2009) - Kindle eBook (Note: This cell (A3) have "by" 2 times)


I want to extract text from RIGHT till the word "by"


So the result must be:
B1: by Steven Pressfield and Shawn Coyne (Nov 11, 2011) - Kindle eBook
B2: by Steven Pressfield (Apr 20, 2011) - Kindle eBook
B3: by Kathy M. Barnes and Robyn Feldberg (Jan 30, 2009) - Kindle eBook
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
this works for your example:

=RIGHT(A2,LEN(A2)-FIND(" by ",A2))

Notes:
It only works because in your example the first instance of by appears as -by-.
If there is an instance of " by " in the title, it will pull everything from the first " by " onward.
 
Upvote 0
Thanks for your help.. the formula worked.

I need another assistance. This time I want the entire text before 'by'.

For example:

A1: The War of Art by Steven Pressfield and Shawn Coyne (Nov 11, 2011) - Kindle eBook
A2: Do the Work by Steven Pressfield (Apr 20, 2011) - Kindle eBook
A3: How to Get the Raise You Want in 90 Days or Less: A Step-by-step Plan for Making It Happen by Kathy M. Barnes and Robyn Feldberg (Jan 30, 2009) - Kindle eBook (Note: This cell (A3) have "by" 2 times)


So the result must be:

B1: The War of Art
B2: Do the Work
B3: How to Get the Raise You Want in 90 Days or Less: A Step-by-step Plan for Making It Happen


I really appreciate your help.
 
Upvote 0
@Cory1985

Extremely sorry, I made a mistake.

The cell that contains 'by' twice is actually without dash.
Therefore:

A3: How to Get the Raise You Want in 90 Days or Less: A Step by step Plan for Making It Happen by Kathy M. Barnes and Robyn Feldberg (Jan 30, 2009) - Kindle eBook (Note: This cell (A3) have "by" 2 times)

Please pardon for begin inaccurate. Can you please help me
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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