Text Formula Required

asif_1986

New Member
Joined
Mar 10, 2011
Messages
3
Can anybody suggest the formula to extract the portion of the following string after the last \ (slash) ,

D:\PS\Kalm\Books\Torrent Books\Drawing

i.e. formula should return Drawing
 
Can anybody suggest the formula to extract the portion of the following string after the last \ (slash) ,

D:\PS\Kalm\Books\Torrent Books\Drawing

i.e. formula should return Drawing
Try this...

=SUBSTITUTE(RIGHT(SUBSTITUTE(A2,"\",REPT("\",255)),255),"\","")
 
Upvote 0
Welcome to MrExcel!

Very similar I know, but there's also:
=TRIM(RIGHT(SUBSTITUTE(A2,"\",REPT(" ",255)),255))


Or if you want to do it manually either with the original data or first copying the data to a new column:

1. Select the column by clicking its heading label.
2. Edit|Replace.. |Find what: *\ | Replace with: leave blank | Options>>|Ensure 'Match entire cell contents' is NOT checked|Replace All
 
Last edited:
Upvote 0

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