gpt4 book ai didi

excel - 仅在第一组括号内提取值 | Excel

转载 作者:行者123 更新时间:2023-12-04 19:52:25 33 4
gpt4 key购买 nike

本质上:

我有一个看起来像这样的单元格值:

Hello - (Whats Up (HowAreYou))

我需要提取外括号内的值:

Whats Up (HowAreYou)

如何修改此公式以满足此要求:

=MID(C11,SEARCH("(",C11)+1,SEARCH(")",C11)-SEARCH("(",C11)-1)

最佳答案

使用 FILTERXML:

=FILTERXML("<a>"&SUBSTITUTE(SUBSTITUTE(A1,"(","<b>",1),")","</b>",LEN(A1)-LEN(SUBSTITUTE(A1,")","")))&"</a>","//b")

enter image description here

或者:

=MID(REPLACE(A1,FIND("@",SUBSTITUTE(A1,")","@",LEN(A1)-LEN(SUBSTITUTE(A1,")","")))),999,""),FIND("(",A1)+1,999)

关于excel - 仅在第一组括号内提取值 | Excel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62437009/

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