您可以使用嵌套有 SUBSTITUTE/LEN/RIGHT 函数的 ArrayFormula 复制列中的公式吗?
Can you copy down a formula in a column using ArrayFormula that has SUBSTITUTE/LEN/RIGHT functions nested in it?
我的GoogleSheet有一个公式,采用以下URL(作为例子)
https://info.example.com/page-one/
并将其剥离到最后一部分。像这样
第一页
然后决定是否在该页面的命名约定中使用单独列中的关键字(是或否)
我想让这个公式做的是自动将函数扩展到所有有数据的行。我一直在使用 ArrayFormula 执行此操作,但无法使用这些函数复制它。
=IF(ISBLANK(B2),"",IF(LOWER(CONCATENATE(SUBSTITUTE(SUBSTITUTE(TRIM(B2),"&","and")," ","-")))=SUBSTITUTE(RIGHT(A2,LEN(A2)-FIND("@",SUBSTITUTE(A2,"/","@",LEN(A2)-LEN(SUBSTITUTE(A2,"/",""))-1))), "/", ""),"Yes","No"))
这里是 link 工作 Google Sheet: https://docs.google.com/spreadsheets/d/1iHkU-rNtNhoOKvW_CWY7WU5OLsMFVqEFNRZlx_R-7RY/edit#gid=1497887942
试试 =ARRAYFORMULA(IFERROR(SUBSTITUTE(RIGHT(A2:A,LEN(A2:A)-FIND("@",SUBSTITUTE(A2:A,"/","@",LEN(A2: A)-LEN(替换(A2:A,"/",""))-1))), "/", "")))
尝试:
={"header"; INDEX(IF(B2:B="",,
IF(REGEXMATCH(A2:A, SUBSTITUTE(B2:B, " ", "-")), "Yes", "No")))}
我的GoogleSheet有一个公式,采用以下URL(作为例子)
https://info.example.com/page-one/
并将其剥离到最后一部分。像这样
第一页
然后决定是否在该页面的命名约定中使用单独列中的关键字(是或否)
我想让这个公式做的是自动将函数扩展到所有有数据的行。我一直在使用 ArrayFormula 执行此操作,但无法使用这些函数复制它。
=IF(ISBLANK(B2),"",IF(LOWER(CONCATENATE(SUBSTITUTE(SUBSTITUTE(TRIM(B2),"&","and")," ","-")))=SUBSTITUTE(RIGHT(A2,LEN(A2)-FIND("@",SUBSTITUTE(A2,"/","@",LEN(A2)-LEN(SUBSTITUTE(A2,"/",""))-1))), "/", ""),"Yes","No"))
这里是 link 工作 Google Sheet: https://docs.google.com/spreadsheets/d/1iHkU-rNtNhoOKvW_CWY7WU5OLsMFVqEFNRZlx_R-7RY/edit#gid=1497887942
试试 =ARRAYFORMULA(IFERROR(SUBSTITUTE(RIGHT(A2:A,LEN(A2:A)-FIND("@",SUBSTITUTE(A2:A,"/","@",LEN(A2: A)-LEN(替换(A2:A,"/",""))-1))), "/", "")))
尝试:
={"header"; INDEX(IF(B2:B="",,
IF(REGEXMATCH(A2:A, SUBSTITUTE(B2:B, " ", "-")), "Yes", "No")))}