工作表中的 Arrayformula 循环依赖问题
Arrayformula circular dependency Problem in Sheets
我想将此 Arrayformula 用于一行(从该行获取数据,并将输入也包含在其中)。
=ARRAYFORMULA(IF((LEN($C1:$C100)>240),IMPORTDATA(CONCATENATE("tinyurl.com/api-create.php?" & $C1),"")))
如果 link 超过 240 个字符。 > 用 tiny URL 代替。如果我将公式放在不同的行上它会起作用,但是当我尝试对整行进行条件格式化时它不起作用/ return 任何东西,或者当我将它用作 arrayformula 时它具有 #REF - 循环依赖错误。
有没有办法解决这个问题(将其应用于整行,从该行获取日期并 return 也输出它)。
< 它适用于 B - 当申请 A 时,但不适用于 C 的 C 行
谢谢。 (我不能 link 很小 url,但你可以在图片中看到完整的)
建议:
您可以尝试下面的示例脚本,它将在您的传播sheet 文件中添加一个 Custom Menu
。只需将脚本作为 bound script:
复制并粘贴到您的 sheet
脚本:
从 here
复制脚本
Note: Codes that contains tiny URL API, see here for more info, can't be posted directly on here. Thus, I have temporarily shared the sample script from this free code sharing site, which will expire after 24 hours
示例演示:
After saving the custom script, you will have these options:
Option 1 will produce the same result as to your original formula. The option 2 will ignore the URLs below 240 characters.
示例:
结果:
If you select Tiny URL ver.2
, only the URLs with more than 240 characters will be changed and the rest of the URLs remains the same instead of being replaced with FALSE
我想将此 Arrayformula 用于一行(从该行获取数据,并将输入也包含在其中)。
=ARRAYFORMULA(IF((LEN($C1:$C100)>240),IMPORTDATA(CONCATENATE("tinyurl.com/api-create.php?" & $C1),"")))
如果 link 超过 240 个字符。 > 用 tiny URL 代替。如果我将公式放在不同的行上它会起作用,但是当我尝试对整行进行条件格式化时它不起作用/ return 任何东西,或者当我将它用作 arrayformula 时它具有 #REF - 循环依赖错误。
有没有办法解决这个问题(将其应用于整行,从该行获取日期并 return 也输出它)。
谢谢。 (我不能 link 很小 url,但你可以在图片中看到完整的)
建议:
您可以尝试下面的示例脚本,它将在您的传播sheet 文件中添加一个 Custom Menu
。只需将脚本作为 bound script:
脚本:
从 here
复制脚本Note: Codes that contains tiny URL API, see here for more info, can't be posted directly on here. Thus, I have temporarily shared the sample script from this free code sharing site, which will expire after 24 hours
示例演示:
After saving the custom script, you will have these options:
Option 1 will produce the same result as to your original formula. The option 2 will ignore the URLs below 240 characters.
示例:
结果:
If you select
Tiny URL ver.2
, only the URLs with more than 240 characters will be changed and the rest of the URLs remains the same instead of being replaced withFALSE