Hello,
Please help me to extract strings from hyphen separated text. spreadsheet attached.
Thanks.
Hello,
Please help me to extract strings from hyphen separated text. spreadsheet attached.
Thanks.
In B2 Cell
=IFERROR(MID(A2,FIND("-",A2,FIND("-",A2)+1)+1,FIND("^",SUBSTITUTE(A2,"-","^",LEN(A2)-LEN(SUBSTITUTE(A2,"-",""))))-FIND("-",A2,FIND("-",A2)+1)-1),"-")
Drag it down![]()
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
deleted due to misread
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Or this....
In B2
and copy it down.![]()
Please Login or Register to view this content.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
Try
or![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Cell B2:
=SUBSTITUTE(TRIM(LEFT(SUBSTITUTE(MID(A2,SEARCH("-",A2,SEARCH("-",A2)+1)+1,255),"-",REPT(" ",10)),LEN(SUBSTITUTE(MID(A2,SEARCH("-",A2,SEARCH("-",A2)+1)+1,255),"-",REPT(" ",10)))-10))," ","-")
Quang PT
Another wayFormula:
Please Login or Register to view this content.
Dave
Thanks...FlameRetired
Thank you.
You're welcome.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks