本文介绍了在数组中使用REGEXEXTRACT,搜索多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我我在这个公式中做错了什么吗?
Can someone please tell me what I am doing wrong in this formula?
=ARRAYFORMULA(REGEXEXTRACT((A2:A&"")+(B2:B&"")+(C2:C&"")), "02(\d{14})37")
我正在尝试提取介于02和37之间的14位数字,该数字可能在columnA,columnB或columnC中.
I'm trying to extract a 14 digit number that sits between 02 and 37 that may be in columnA, columnB or columnC.
我也尝试过,预期结果仅显示在第一行:
I've tried this also, with the expected result showing on the first row only:
=ARRAYFORMULA(REGEXEXTRACT(textjoin(" ",true,A2:C),"02(\d{6,14})37"))
我真的很困惑.
推荐答案
它必须像这样:
=ARRAYFORMULA(IFERROR(IFERROR(IFERROR(IFERROR(
REGEXEXTRACT(A2:A&"", "02(\d{14})37"),
REGEXEXTRACT(B2:B&"", "02(\d{14})37")),
REGEXEXTRACT(C2:C&"", "02(\d{14})37")))))
这篇关于在数组中使用REGEXEXTRACT,搜索多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!