Hi guys,
If for example, I have a set of IDs like:
Bellen-234-B25R
Carlota-345-C20RDF
Quad-765-Q20LP
How would I return just the first 4 characters after the second dash? The closest I can get is ALL the characters after the second dash.
Thanks.
Hi guys,
If for example, I have a set of IDs like:
Bellen-234-B25R
Carlota-345-C20RDF
Quad-765-Q20LP
How would I return just the first 4 characters after the second dash? The closest I can get is ALL the characters after the second dash.
Thanks.
Try this
=LEFT(TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",255)),255)),4)
A B 1Bellen-234-B25R B25R 2Carlota-345-C20RDF C20R 3Quad-765-Q20LP Q20L
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Maybe:
=LEFT(RIGHT(A1,LEN(A1)-SEARCH("-",A1,SEARCH("-",A1,1)+1)),4)
Yep, both of those seem to work perfectly.
Thanks guys.
Thank you for the feedback!
Last edited by AlKey; 06-04-2014 at 04:18 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks