gpt4 book ai didi

Excel:删除 ? 之后的所有内容在网址中

转载 作者:行者123 更新时间:2023-12-02 07:24:22 24 4
gpt4 key购买 nike

我已经在线搜索了公式或插件,但似乎找不到任何相关公式。

我想知道是否可以删除网址中问号后面的所有内容?

http://www.site.com/index.php?98943j%klr

http://www.site.com/index.php

谢谢!

最佳答案

尝试

=IF(LEN(SUBSTITUTE(A1,"?",""))=LEN(A1),A1,LEFT(A1,FIND("?",A1)-1))

  • 迎合没有出现在A1中而不引发错误
  • 正确地将字符串截断为 http://www.site.com/index.php ....您接受的答案不会根据 ? 的位置进行调整,并且它将返回 http://www.site.com/index.php?

关于Excel:删除 ? 之后的所有内容在网址中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20717566/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com