Isolating RIGHT value

goosteroo

New Member
Joined
Oct 28, 2005
Messages
42
Hi all. I think this is pretty easy, but I can't get the formula to work. Bascially, I want to isolate the value on the furthest right. It immediately follows a "-" symbol, but is variable in length.

i.e.

TO#0005117-Delta Airlines-Dec05-Travel-728x90

I just want "728x90" displayed in another column.


Many thanks in advance.

Kevin
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hoping there are always 4 dashes, then you can try:

=RIGHT(I9,LEN(I9)-SEARCH("@",SUBSTITUTE(I9,"-","@",4))), where I9 contains the original string
 
Upvote 0
Another way (should work if the number of dashes will be variable):

=MID(A1,FIND("~",SUBSTITUTE(A1,"-","~",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))+1,LEN(A1))
 
Upvote 0
Maybe try:

=RIGHT(A1,LEN(A1)-FIND("@",SUBSTITUTE(A1,"-","@",LEN(A1)-LEN(SUBSTITUTE(A1,"-","")))))

If your string can contain @ change it to some other unlikely character.
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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