简体   繁体   English

如何在Excel中显示唯一名称?

[英]How can I display unique names in Excel?

Given the following table on sheet one: 鉴于第一页的下表:

Name
-------
Alan
Barb
Corey
Barb
Alan
Daniel
Alan

How can I generate the following table on sheet two? 如何在第二张表格中生成下表?

Name
-------
Alan
Barb
Corey
Daniel

I cannot leave empty rows like this: 我不能留下这样的空行:

Name
-------
Alan
Barb
Corey


Daniel

I'm assuming you have Excel 2007 or later. 我假设你有Excel 2007或更高版本。

Copy the entire list, duplicates and all, to Sheet 2. 将整个列表,副本和所有列表复制到工作表2。

Then go to the Data tab. 然后转到“数据”选项卡。 In the Data tools section there is a large button called "Remove Duplicates." 在“数据工具”部分中,有一个名为“删除重复项”的大按钮。 It will do just that. 它会做到这一点。

There is a formulaic approach that is not version-dependent. 有一种不依赖于版本的公式化方法。 See Oscar's Site . 参见奥斯卡的网站

As far as I know, there is no way to do it formulaically. 据我所知,没有办法公平地做到这一点。

If you just need a one-time copy, though, this article explains how to do it. 但是,如果您只需要一次性副本,那么本文将介绍如何执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM