【发布时间】:2020-04-20 04:18:46
【问题描述】:
我在 Google 表格中有这张 ID 表:
All_ID product_id Package ID subpackage ID
65385A 65385A1
65385A2
65385 65385B 65385B1
65385B2
52002 52002A
52002B 52002B1
52002B2
52002C
52002D
60000
如何在 ALL_ID 列中返回 Google 表格或(excel 等效项)中最“详细”的 ID?
All_ID product_id Package ID subpackage ID
65385A1 65385A 65385A1
65385A2 65385A2
65385B1 65385 65385B 65385B1
65385B2 65385B2
52002A 52002 52002A
52002B1 52002B 52002B1
52002B2 52002B2
52002C 52002C
52002D 52002D
60000 60000
我在两列 (=IF(B1="",C1,B1) 上使用了类似的函数
【问题讨论】:
-
=if(D1<>"", D1, IF(C1<>"", C1, IF(B1<>"", B1, ""))) -
完全可以!谢谢蒂姆!
标签: arrays if-statement google-sheets google-sheets-formula array-formulas