【问题标题】:Return values only if they are not present in current column仅当它们不存在于当前列中时才返回值
【发布时间】:2011-02-21 01:46:45
【问题描述】:

我有一列要从另一列添加数据

我想检查该列是否包含我要添加的数据。你能帮我用一个公式告诉我当前列中是否存在某个值吗?

请记住,它比听起来要复杂一些。

目前我在单元格中有这个:

=IF(OR(A3="ETG_C",A3="ETGC"),C3,"na")

我想要这样的东西

=IF(FIND(IF(OR(A2="ETG_C",A2="ETGC"),C2,"na"),K:K,1)," ",IF(OR(A2="ETG_C",A2="ETGC"),C2,"na"))

也就是说,如果top值已经存在,那么就加一个空格

【问题讨论】:

  • 两点:1)您所说的问题与VBA无关; 2) 短语是“in other words”,而不是“another words”。

标签: vba excel excel-formula


【解决方案1】:

您尝试过 VLookup 吗?

类似

=if(IsError(vlookup(<what you are about to add>,<column where you are adding>,1, false)),<what you are about to add>," ")

【讨论】:

    猜你喜欢
    • 2018-12-25
    • 2021-11-16
    • 1970-01-01
    • 2023-01-09
    • 2015-01-16
    相关资源
    最近更新 更多