gpt4 book ai didi

google-sheets - 如何从字符串中提取文本?

转载 作者:行者123 更新时间:2023-12-04 08:39:36 24 4
gpt4 key购买 nike

我要提取 2来自 cell C3 中的字符串并将其作为 cell E3 中函数的结果返回:
enter image description here
大概 SPLIT这是错误的方法。
编辑:
我换了 2s因为有些方法适用于数字但不适用于字母:
enter image description here

最佳答案

尝试以下

=REGEXEXTRACT(A1,"\d")*1
enter image description here

按照 OP 的编辑
=REGEXEXTRACT(A2,";(.*),")  
enter image description here
请阅读更多关于 REGEXEXTRACT

关于google-sheets - 如何从字符串中提取文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64629647/

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