在Excel中忽略重复并创建新的唯一值列表 [英] Ignore Duplicates and Create New List of Unique Values in Excel

查看:169
本文介绍了在Excel中忽略重复并创建新的唯一值列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一列通常显示为重复的值。我需要创建一个基于第一列的唯一值的新列,如下所示:

 列A列B 
aa
ab
bc
c
c

此列B实际上需要在同一个工作簿中出现在不同的工作表上,所以我认为需要使用 sheet2!A1 样式格式。



我没有任何运气与数据/过滤器菜单选项,因为这似乎只适用于命令。列A中输入新值后,我需要B栏自动更新。

解决方案

Totero的答案是正确的。该链接也非常有帮助。



您需要的公式基本上是:

  B2 = INDEX($ A $ 2:$ A $ 20,MATCH(0,COUNTIF($ B $ 1:B1,$ A $ 2:$ A $ 20),0))

然后按 ctrl + shift + 输入不能使用数组公式工作)



这里需要牢记两个重要的事情:完整列表在单元格 A2:A20 ,那么这个公式必须粘贴在单元格 B2 (不是 B1 中,因为这将给你通知参考)。
其次,这是一个数组公式,所以你需要按 ctrl + shift + 输入或者它将无法正常工作。 / p>

I have a column of values that often appear as duplicates. I need to create a new column, of unique values based on the first column, as follows:

Column A   Column B  
a          a
a          b
b          c
c
c

This Column B will actually need to appear on a different sheet, within the same workbook, so I assume it will need to work with the sheet2!A1 style format.

I have not had any luck with the Data/Filter menu options as this only seems to work on command. I need column B to update automatically whenever a new value is entered into column A.

解决方案

Totero's answer is correct. The link is also very helpful.

Basically the formula you need is:

B2=INDEX($A$2:$A$20, MATCH(0, COUNTIF($B$1:B1, $A$2:$A$20), 0))

Then press ctrl+shift+enter (or it will not work using a array formula).

Two important things to keep in mind here: The complete list is in cells A2:A20, then this formula has to be pasted in cell B2 (Not B1 as that will give you circular reference). Secondly this is an array formula, so you need to press ctrl+shift+enter or it will not work correctly.

这篇关于在Excel中忽略重复并创建新的唯一值列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆