how to extract data between first and 2nd last delimiter.

faizal Izham

New Member
Joined
Oct 26, 2017
Messages
7
Hi All,

I would like to know if there is an excel formula to extract data in the middle between first and 2nd last delimiter.
I have a sample data as below.

device_hostname1_rootvg_lun1_1_vol
device_hostname1_vgDBapp_lun397_1_vol
device_hostname1_vgDBbkp_lun398_1_vol
device_hostname1_vgDButils_lun399_1_vol
device_hostname1_2_Arch1_SharedLUN01_lun400_1_vol
device_hostname1_2_Arch1_SharedLUN02_lun401_1_vol
device_hostname1_2_Arch1_SharedLUN03_lun402_1_vol

and i wanted to have a formula which can output the data as per below.

hostname1_rootvg_lun1
hostname1_vgDBapp_lun397
hostname1_vgDBbkp_lun398
hostname1_vgDButils_lun399
hostname1_2_Arch1_SharedLUN01_lun400
hostname1_2_Arch1_SharedLUN02_lun401
hostname1_2_Arch1_SharedLUN03_lun402

Thank You in advance.

Faizal







<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,215,641
Messages
6,125,982
Members
449,276
Latest member
surendra75

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