Google Docs Sheets - 从结果中删除文本

Google Docs Sheets - Strip text from result

我有这个代码:

=ImportXML("http://www.site.co.uk/content?q=test", "//div[@id='searchCount']")

在数据中 returns 这个:

Items 1 to 10 of 1,819

如何更改公式以去掉 "Items X to X of ",这样我就只剩下末尾的数字了?

试试这个

=INDEX(SPLIT(ImportXML("http://www.site.co.uk/content?q=test", "//div[@id='searchCount']")," "),1,COLUMNS(SPLIT(ImportXML("http://www.site.co.uk/content?q=test", "//div[@id='searchCount']")," ")))

或者,这也可能有效:

=REGEXEXTRACT(ImportXML("http://www.site.co.uk/content?q=test", "//div[@id='searchCount']"), "of (.+)$")+0