extracting text from a cell

cmb269

New Member
Joined
Sep 4, 2014
Messages
4
hello all,

i am trying to use the right and left function on my excel 2007. i don't know what i was doing wrong here. i want to extract the text string after the underscore:

HT-ALA851L-HARMK
HT-ALA851L-HARMK_LCD
HT-ALA851L-HARMK_2LCD
HT-ALA851L-HARMK_3LCD
HT-ALA851L-HARMK_CGV8
HT-ALA851L-HARMK_TCV8
HT-ALA851L-HARMK_BD1
HT-ALA851L-HARMK_BD2
HT-ALA851L-HARMK_BD3
HT-ALA851L-HARMK_BD4
HT-ALA851L-HARMK_BD5
LCD-ZTN9515-HC
LCD-ZTN9515-HC_2LCD
LCD-ZTN9515-HC_3LCD
LCD-ZTN9515-HC_CGV8
LCD-ZTN9515-HC_TCV8
LCD-ZTN9515-HC_BD1
LCD-ZTN9515-HC_BD5

<colgroup><col></colgroup><tbody>
</tbody>


<colgroup><col></colgroup><tbody>
</tbody>
i uses:

=RIGHT(A3,(FIND("_",A3)-1)) and =LEFT(A3,(FIND("_",A3)-1)) both did not work,

LA851L-HARMPARENT_LCD and HT-ALA851L-HARMPARENT

all i needed is the text after the underscore. "_LCD"

can someone guide me thru?


thanks
cmb269
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
hello all, i have a related question. i am looking to extract the data in between the xx-xxxxx-xxx what function do i use?

HT-ALA851L-HARMK
HT-ALA851L-HARMK_LCD
HT-ALA851L-HARMK_2LCD
HT-ALA851L-HARMK_3LCD
HT-ALA851L-HARMK_CGV8
HT-ALA851L-HARMK_TCV8
HT-ALA851L-HARMK_BD1
HT-ALA851L-HARMK_BD2
HT-ALA851L-HARMK_BD3
HT-ALA851L-HARMK_BD4
HT-ALA851L-HARMK_BD5

all i need is ALA851L and below:

LCD-ZTN9515-HC
LCD-ZTN9515-HC_2LCD
LCD-ZTN9515-HC_3LCD
LCD-ZTN9515-HC_CGV8
LCD-ZTN9515-HC_TCV8
LCD-ZTN9515-HC_BD1
LCD-ZTN9515-HC_BD5

i would need ZTN9515..... if someone can help.......

thanks
cmb269

<tbody>
</tbody>


<tbody>
</tbody>
 
Upvote 0
=MID(A1,FIND("-",A1,1)+1,FIND("-",A1,FIND("-",A1,1)+1)-FIND("-",A1,1)-1)

or

=TRIM(MID(SUBSTITUTE(A1,"-",REPT(" ",99)),100,99))
 
Upvote 0

Forum statistics

Threads
1,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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