【问题标题】:Find unique values from multiple different col in a every row在每一行中从多个不同的列中查找唯一值
【发布时间】:2021-05-24 12:09:43
【问题描述】:

抱歉,我没有代码,因为我不太确定从哪里开始......

我需要从下面显示的 6 个不同的列中找到所有唯一的国家代码,并将它们附加到 Indicas 的末尾。

例如:

Residence 1 Residence 2 Residence 3 Mail 1 Mail 2 Mail 3 Indica 1 Indica 2 Indica 3
CN US NULL US CN NULL
US NULL NULL NULL NULL NULL
US CN EU NULL NULL NULL

把籼稻填成这样:

Residence 1 Residence 2 Residence 3 Mail 1 Mail 2 Mail 3 Indica 1 Indica 2 Indica 3
CN US NULL US NULL NULL CN US
US NULL NULL NULL NULL NULL US
US CN NULL NULL NULL EU US CN EU

看起来很容易,但我正在努力解决它。

【问题讨论】:

  • “我没有代码,因为我不太确定从哪里开始。”你试过任何代码吗?如果是这样,请在问题中包含minimal-reproducible-example

标签: excel-formula excel-2016


【解决方案1】:

我已将表格放置在 B1:J4 中。您可以在所有籼稻单元格中使用以下公式

=IF(UNIQUE($B3:$G3,TRUE)="NULL","",UNIQUE($B3:$G3,TRUE))

【讨论】:

  • 不客气。如果可行,请记得投票并将答案标记为有用:)
猜你喜欢
  • 1970-01-01
  • 2023-01-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-04-16
  • 1970-01-01
  • 2011-04-22
  • 2020-01-28
相关资源
最近更新 更多