Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 在中获得第二个值:1.28(3.93%)_Google Sheets - Fatal编程技术网

Google sheets 在中获得第二个值:1.28(3.93%)

Google sheets 在中获得第二个值:1.28(3.93%),google-sheets,Google Sheets,我使用IMPORTHTML从一个表中获取数据,在其中一个单元格中,内容是:1.28(3.93%) 如果我只想从该单元格中获取3.93,我应该使用什么模式匹配?假设A1中有“1.28(3.93%)”,这将返回“3.93”: =index(split(SUBSTITUTE(substitute(substitute(A1,"("," "),")",""),"%","")," "),0,2) 替换用空格替换不需要的聊天符。Split分离剩余的两个值,index选择第二个值。您可以尝试用importh

我使用IMPORTHTML从一个表中获取数据,在其中一个单元格中,内容是:1.28(3.93%)

如果我只想从该单元格中获取3.93,我应该使用什么模式匹配?

假设A1中有“1.28(3.93%)”,这将返回“3.93”:

=index(split(SUBSTITUTE(substitute(substitute(A1,"("," "),")",""),"%","")," "),0,2)
替换用空格替换不需要的聊天符。Split分离剩余的两个值,index选择第二个值。您可以尝试用importhtml公式替换A1。这应该行。

假设A1中有“1.28(3.93%)”,则返回“3.93”:

=index(split(SUBSTITUTE(substitute(substitute(A1,"("," "),")",""),"%","")," "),0,2)
替换用空格替换不需要的聊天符。Split分离剩余的两个值,index选择第二个值。您可以尝试用importhtml公式替换A1。这应该行得通。

在REGEXEXTRACT中换行:

=REGEXEXTRACT(....,"\((.+)%")
在REGEXEXTRACT中换行:

=REGEXEXTRACT(....,"\((.+)%")