Delete everything to the left of text between delimiters

Innoguide

Board Regular
Joined
Sep 13, 2011
Messages
159
I have a text string in excel that is a series of notes delimited by <> following each note

So an example would be:

It is going well - I hope; we'll know more next week<>Project is slipping - more to some<>Project is on track as of 7/7/18<>Well, it's back off track as of 7/15<>

Would very much appreciate any suggestions on how to extract just the last note (rightmost) so the result would be:

Well, it's back off track as of 7/15
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Assuming none of your entries will be more than 1000 characters long, give this formula a try...

=TRIM(LEFT(RIGHT(SUBSTITUTE(A1,"<>",REPT(" ",1000)),2000),1000))

If you think none of the entries would ever be more than 500 characters in length, this would be more efficient...

=TRIM(LEFT(RIGHT(SUBSTITUTE(A1,"<>",REPT(" ",500)),1000),500))
 
Last edited:
Upvote 0
Hi,

Another way:


Book1
AB
1It is going well - I hope; we'll know more next week<>Project is slipping - more to some<>Project is on track as of 7/7/18<>Well, it's back off track as of 7/15<>Well, it's back off track as of 7/15
Sheet371
Cell Formulas
RangeFormula
B1=TRIM(RIGHT(SUBSTITUTE(A1,"<>",REPT(" ",500)),1000))
 
Upvote 0
Thanks Rick! - Worked perfectly - Is the limit 1000 Characters?

When you say "none of the entries" do you mean the delimited strings or the entire cell?
 
Upvote 0
Hi Aladin -
Formula worked great to find last occurrence of text between delimiters (<>Text string<>)

But I noticed that if there is only one entry (Text string<>) it was returning #value !
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,845
Members
449,051
Latest member
excelquestion515

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