2017-02-21 69 views
0

我在Google Spreadsheet中使用importData函數導入外部csv文件。它可以工作,但我想替換表格中的一些文字。在importData函數後替換文本

如果沒看錯的替換文本有一個函數:

SUBSTITUTE("search for it","search for","Google") 

的問題:當我試圖使用替代我得到錯誤:

Array result was not expanded because it would overwrite data in A3

有什麼辦法來導入csv並替換文檔中的文本?

回答

0

您可以使用arrayformula並將其替換爲importdata來替換或刪除數據。例如,我用它來替換'='和帶空格的雙引號:

=arrayformula(substitute(SUBSTITUTE(IMPORTDATA("https://ct.thecmp.org/app/v1/index.php?do=match&task=downloadMatchResultsDetail&MatchId=12504&EventId=4&AwardId=1") ,char(61) , ""),char(34),""))