我的数据来自Google表格。我想搜索单元格,如果它是空白的,则将N / A插入另一个单元格,但如果它不是空白,则将单元格中的文本插入另一个单元格。我确信它很简单,但我无法弄清楚。非常感谢您的帮助。 enter image description here
答案 0 :(得分:0)
Say A1 is either blank or a value that you want to test, and B1 is the cell to either put the value of A1, or N/A if A1 is blank.
In that case, try putting this formula in B1:
=if(isblank(A1),NA(),A1)
if() tests if the first argument is true for false. If it's true, the second argument comes out. If it's false, the third value comes out.
isblank() returns true if the cell referenced is blank, and false if the cell contains some value.
NA() throws the N/A error.
For future reference, it helps to put more specific references in your question if you can, instead of leaving it general and vague.