【问题标题】:Google spreadsheet: Value parameter can not be parsedGoogle 电子表格:无法解析值参数
【发布时间】:2017-06-01 06:05:19
【问题描述】:

我正在使用这个script 将 ImportJSON 集成到我的谷歌表格中。 我正在执行的命令是:

=IF(B4="";"";VALUE(ImportJSON("https://min-api.cryptocompare.com/data/price?fsym="&B4&"&tsyms=USD";"/USD";"noHeaders";$L$1))*$C$2)

其中 B4 包含:“BTC”,this 是我返回的值。

现在我在错误框中看到了我的值:

值参数1423.42不能解析为数字。

数字包含一个点('.')。不知道是不是这个问题?

有人知道在我的情况下如何解决这个问题吗?

【问题讨论】:

    标签: json google-apps-script google-sheets google-sheets-formula custom-function


    【解决方案1】:

    这个公式对我来说没有错误:

    =IF(B4="","",VALUE(ImportJSON("https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD","/USD","noHeaders","/feed/entry/title,/feed/entry/content")))
    

    【讨论】:

      【解决方案2】:

      这对我有用

      =IF(B4="";"";VALUE(substitute(ImportJSON("https://min-api.cryptocompare.com/data/price?fsym="&B4&"&tsyms=EUR";"/EUR";"noHeaders";$L$1);".";","))*$C$2)
      

      【讨论】:

        猜你喜欢
        • 2020-01-08
        • 1970-01-01
        • 1970-01-01
        • 2014-08-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多