Return only the values of a Concatenate Formula

时间:2019-05-24 01:20:26

标签: google-sheets concatenation array-formulas google-sheets-formula google-sheets-importxml

I looking to have the concatenate function to return only the values, so that the return may be used for an ImportXML.

I have column A displaying URLs: ( https://example.com/admin/v3/suggestions/19658686/

B列从A列中的URL中提取数据:(/ 19658686 /)

C列显示文本的串联版本+ B列(通过公式)创建新的URL:(https://example.com/forums/suggestions/19658686/

B列:=RIGHT(A1,LEN(A1)-SEARCH("s/",A1))
C列:=CONCATENATE("https://example.com/forums/suggestions",B1)

我想使用ImportXML来使用C列中的URL进行查找,但是由于从技术上讲它是一个公式,因此无法使用。

我当然很想看看是否有解决方法,或者甚至更有效的方法来通过脚本执行此操作。提前感谢帮助。

1 个答案:

答案 0 :(得分:0)

设为B1:

=ARRAYFORMULA(IFERROR(RIGHT(A1:A, LEN(A1:A)-SEARCH("s/", A1:A))))

和C1:

=ARRAYFORMULA(IF(LEN(A1:A), "https://example.com/forums/suggestions"&B1:B, ))

其中D1:

=IFERROR(IMPORTXML(C1, "//*"))

然后向下拖动...

0

相关问题