Extract data after last slash

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,366
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I know there has to be a more succinct solution than this. Any thoughts?

Data Range
[Table="class: grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][/tr]
[tr][td]
1​
[/td][td]
Path​
[/td][td]
[/td][td]
[/td][/tr]

[tr][td]
2​
[/td][td]
sites/AF-DP-00-53/ManpowerStandards/AFMS/ManpowerGuides/AFMSs_Under_Study/Maintenance Overhead (non-LCOM)​
[/td][td]
Maintenance Overhead (non-LCOM)​
[/td][td]
6​
[/td][/tr]

[tr][td]
3​
[/td][td]
sites/AF-DP-00-53/ManpowerStandards/AFMS/AirForceStandards/02-Alpha_Series​
[/td][td]
02-Alpha_Series​
[/td][td]
5​
[/td][/tr]

[tr][td]
4​
[/td][td]
sites/AF-DP-00-53/ManpowerStandards/AFMS/ManpowerGuides​
[/td][td]
ManpowerGuides​
[/td][td]
4​
[/td][/tr]
[/table]

B2 copied down =MID(A2,FIND("@",SUBSTITUTE(A2,"/","@",LEN(A2)-LEN(SUBSTITUTE(A2,"/",""))))+1,LEN(A2))
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If it's always everything after the last slash, here's a shorter version (in B2 and copy down):

Code:
=TRIM(RIGHT(SUBSTITUTE(A2,"/",REPT(" ",100)),100))
 
Upvote 0
Solution
If it's always everything after the last slash, here's a shorter version (in B2 and copy down):

Code:
=TRIM(RIGHT(SUBSTITUTE(A2,"/",REPT(" ",100)),100))
Hi can I ask do i type this formula as it is on excel
 
Upvote 0

Forum statistics

Threads
1,223,646
Messages
6,173,531
Members
452,520
Latest member
Pingaware

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