How to extract "n"th word from a text string

CRISTINA1128

New Member
Joined
Jun 21, 2016
Messages
9
hello...i'm using excel 2016 and I need the 1st word after the number sequence. How do I accomplish this?

My text strings are as follows:
67478_06271_CHILLAXBLACK_ZG13096-06
67478_06271_OFFWEGO_ZG12711-04BOOTIEWI
67478_06271_RUBIE_ZG13574-15STRAPPYW
67478_06271_SPRAYPAINT_LACEDBOOTWITHPLAI
67478_06271_TEASE_ZG13231-01BOATIESH


** From the above list, I need to extract the following text: CHILLAXBLACK, OFFWEGO, RUBIE, SPRAYPAINT, TEASE

thank you in advance!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Would it be a reasonable assumption that you want the value between the 2nd and 3rd _ ?

Try
=TRIM(MID(SUBSTITUTE(A1,"_",REPT(" ",LEN(A1))),LEN(A1)*2,LEN(A1)))
 
Upvote 0
If the beginning part is always the same format (5digits_5digits_)
#####_#####_

Try

=REPLACE(LEFT(A1,FIND("_",A1,13)-1),1,12,"")
 
Last edited:
Upvote 0
Something like =MID(A1,13,SEARCH("_",A1,13)-13) A1 being where the string is stored. If the number sequence is not uniform lenght, substitute the 13 with another Search function.

Alternatively, use excel text to column tool, with "_" as the delimiter, and the 3rd column should be those values.
 
Upvote 0
if your string is always from second "_" then try:

=RIGHT(H1,LEN(H1)-FIND(CHAR(1),SUBSTITUTE(H1,"_",CHAR(1),2)))
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

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