获取两个字符之间的文本

huangapple go评论61阅读模式
英文:

Excel: Get text between two characters

问题

以下是您要翻译的代码部分:

= MID(A5,SEARCH("/",A5)+1,SEARCH("'",A5) - SEARCH("/",A5) -1)

= MID(RIGHT(A5,FIND("/",A5)-1),FIND("/",A5)+1,LEN(A5))

但不幸的是它们没有起作用。

英文:

I'm trying to get the text between the last / and ' in the column below:

获取两个字符之间的文本

So that my answer will be:

获取两个字符之间的文本

I tried using the formulas:

=MID(A5, SEARCH("/", A5)+1, SEARCH("''", A5) - SEARCH("/", A5) -1)

and

=MID(RIGHT(A5,FIND("/",A5)-1),FIND("/",A5)+1,LEN(A5))

But unfortunately they aren't working.

答案1

得分: 4

你可以尝试这个:

=SUBSTITUTE(TEXTAFTER(A1:A4,"/",-1),"'","")

输出如下:
获取两个字符之间的文本

类似地,获取文本之前的方法:

=SUBSTITUTE(TEXTBEFORE(A1:A4,"/",-1),"'","")
英文:

You can try this:

=SUBSTITUTE(TEXTAFTER(A1:A4,"/",-1),"'","")

Here is the output:
获取两个字符之间的文本

Similarly to get the text before:

=SUBSTITUTE(TEXTBEFORE(A1:A4,"/",-1),"'","")

huangapple
  • 本文由 发表于 2023年2月13日 22:42:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75437364.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定