Aug 21 2022 08:30 AM
Hi,
I want to returns a specific number of characters from a text string
and I try to use MID and SEARCH formula for first row, but I dont know what to do next for other rows.
How can we get the expect result
Thank you
Aug 21 2022 08:41 AM
Aug 21 2022 08:58 AM
Thank you for your response
when the first and at the end of text string added characters differently "x". It's show the result in column B
Aug 21 2022 09:12 AM
What exact logic shall be?
Remove specific character from the text;
Remove start of the text till first space;
Something else
Aug 21 2022 09:28 AM
More SUBSTITUTE().
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C2,"x",""),"a",""),"b",""),"c",""))
Aug 21 2022 03:01 PM - edited Aug 21 2022 03:04 PM
I want to separate the tracking number from the text string and its length11, 12 or 18 characters
sometimes it's at the beginning, middle or end of the string text
the expect result shown in column A
Aug 21 2022 03:57 PM
Solution=LET(
a,FILTERXML("<y><z>"&SUBSTITUTE(C2," ","</z><z>")&"</z></y>","//z"),
b,--(LEN(a)={11.12.18}),
c,SEQUENCE(3,,1,0),
d,MMULT(b,c),
CONCAT(IF(d,a,"")))
Aug 21 2022 08:55 PM
Thank you
It is working perfectly, a little question please
Where have you create the formula?
Aug 21 2022 09:33 PM
Aug 21 2022 11:24 PM - edited Aug 21 2022 11:29 PM
Hi Detlef,
Sorry for my english
I am just start with excel about 4 months
I mean, What did you use to write the formula?
Aug 22 2022 12:45 AM
Aug 22 2022 01:14 AM
In regular excel I could not see something the same as this image, that's why I said' where did you write the formula"
Aug 22 2022 01:39 AM
Aug 22 2022 08:27 AM
I see many member of this forum do it. How can I use it?
Aug 22 2022 08:29 AM
Aug 22 2022 08:35 AM
Aug 22 2022 08:57 AM
Open the full text editor and klick on "Insert code" in the icon bar.
Then choose Language and enter the code.
Aug 22 2022 04:25 PM
sorry my friend, i am looking on google and youtube but i could not find how to open the full text Editor in excel.
Aug 23 2022 12:33 AM
That screenshot is not from Excel but from this forum.
In Excel you can expand the formula bar by pressing Ctrl+Shift+U.
And you can insert line breaks in a formula by pressing Alt+Enter.
Aug 23 2022 07:09 AM
Aug 21 2022 03:57 PM
Solution=LET(
a,FILTERXML("<y><z>"&SUBSTITUTE(C2," ","</z><z>")&"</z></y>","//z"),
b,--(LEN(a)={11.12.18}),
c,SEQUENCE(3,,1,0),
d,MMULT(b,c),
CONCAT(IF(d,a,"")))