Data minipulation, text after a symbol

marckk

New Member
Joined
Sep 15, 2011
Messages
16
Hi,
I need a formula to return all of the text after the first instance of a symbol. In cell A1 I have the following string:

"\\hou-fs-01\clients\ati\datajunc\data\Aetna\OE\PROD\secureftp.x12unz.ati.txt"

what I need to retun is everything after the last "\" so I need:

"secureftp.x12unz.ati.txt"

in the cell displaying the results from the formula. The column that contains the source data may have 3 "\" slash marks may have 10 so I don't have a set number. Any help or direction would be appreciated
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,
I need a formula to return all of the text after the first instance of a symbol. In cell A1 I have the following string:

"\\hou-fs-01\clients\ati\datajunc\data\Aetna\OE\PROD\secureftp.x12unz.ati.txt"

what I need to retun is everything after the last "\" so I need:

"secureftp.x12unz.ati.txt"

in the cell displaying the results from the formula. The column that contains the source data may have 3 "\" slash marks may have 10 so I don't have a set number. Any help or direction would be appreciated
Try this...

=SUBSTITUTE(RIGHT(SUBSTITUTE(A1,"\",REPT("\",100)),100),"\","")
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

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