this post was submitted on 23 Aug 2023
3 points (100.0% liked)
Excel is Cool!
84 readers
6 users here now
Prove to the world Excel is cool!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
See if this does it for you:
=TRIM(MID(SUBSTITUTE(A1,"-",REPT(" ",LEN(A1))),3*LEN(A1)+1,LEN(A1)))
This is assuming
A1
is where the string is. The3
in3*LEN(A1)
is what determines which string will be extracted, like so:Source: https://stackoverflow.com/questions/61837696/excel-extract-substrings-from-string-using-filterxml
It worked! Thanks so much, I was going crazy over this.