Search in a cell from right to left instead of left to right

BVOPP

Board Regular
Joined
Feb 9, 2015
Messages
50
in my spreadsheet there are a lot of cells that contain a text like "T:\DEPLOY\NETHERLAND\SAPBEHEER\SOURCESPACKAGE\ZCB\ABAP/CLASSPOOL/ZCL_CB_PROJECT/CLASS/ZCL_CB_PROJECT/METHOD/SET_PROJECT_SUB_PROJ"

From this cell i need to substract the last part (after the last "/"') in this case: SET_PROJECT_SUB_PROJ
and the one before the last "/" in this case "METHOD" and store both in a different cell

is there a way to do this?

Thanks in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Excel 2010
A
1T:\DEPLOY\NETHERLAND\SAPBEHEER\SOURCESPACKAGE\ZCB\ABAP/CLASSPOOL/ZCL_CB_PROJECT/CLASS/ZCL_CB_PROJECT/METHOD/SET_PROJECT_SUB_PROJ
2
3SET_PROJECT_SUB_PROJ
4METHOD
Sheet17
Cell Formulas
RangeFormula
A3=TRIM(RIGHT(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",100)),200),100))
A4=TRIM(LEFT(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",100)),200),100))


If method is supposed to appear first then it's even easier
 
Upvote 0
Hi,

I think sheetspread meant this for A3 formula:

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

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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