如何合并 Google 中都有空格的列 refine

How to merge columns that both have blank spaces in Google refine

我在 google refine 中使用数据库,我有 2 列包含信息 "year"。两列都有值和空白 space,其中一列有值,另一列有空白 space 所以我想合并两者。

我找到了这个教程: http://kb.refinepro.com/2011/07/merge-2-columns-that-have-both-blank.html

其中公式:cells["col1"].value + " " + cells["col2"].value 已使用,但我没有得到我想要的,我只是收到错误和一个空白的新列。

试试 if(cells["col1"], cells["col1"].value, "") + if(cells["col2"], cells["col2"].value, "")

似乎在空单元格上调用值导致了错误