当前位置:首页 > 办公设计 > Office教程 > 移除重复的Excel列表(和区域)记录

移除重复的Excel列表(和区域)记录

1年前 (2025-05-24)Office教程1040

译者:fanjy  来源:http://blogs.msdn.com/excel
发表于:2006年7月7日

Tables Part 6: Removing duplicates from tables (and ranges) of data
列表(第6部分):移除重复的列表(和区域)记录

Being able to remove duplicate rows of information from a table of data is a request we hear fairly often from our customers (and one of the top questions in the comments in this blog). Some users know that this capability exists in Excel today; unfortunately it is buried under advanced filter settings and it’s not terribly easy to use. So we set out in Excel 12 to build a better interface specifically for this task so that any user could easily remove unnecessary data from their spreadsheet.
我们经常听到的一个客户需求是能够从列表中移除重复的数据行(这也是在博客中提出的最多的问题之一)。一些用户知道在目前版本的Excel中已有这个功能,遗憾的是它隐藏在高级筛选设置中且不易使用(译者注:即高级筛选中选择不重复的记录选项)。于是,我们在Excel 12中将这项功能设置在了一个更友好的专门的界面中,以便于任何用户都能容易地从电子表格中移除不需要的记录。

Remove duplicates can be found in two places in Excel 12, on the Data ribbon as well as the Table ribbon (just like sort and filters, it’s not necessary to have a table in order to use this feature). To use the feature, a user simply has to select the data they want to examine for duplicates and press the “Remove Duplicates” button. This will bring up a dialog that looks like this:
在Excel 12中移除重复记录的功能被设置在Data ribbon和Table ribbon中(就像排序和筛选一样,不需要设置专门的列表框来使用这个功能)。要使用这个功能,用户只需简单地选择想检查的记录,按下”Remove Duplicates”按钮后,出现下图所示的对话框:

You’ll notice that all my column headers appear in the dialog. To remove duplicates, just select the columns that Excel should use to evaluate duplicates. For example, in my table above I want to remove all duplicate rows where the first name is the same and the last name is the same. In other words, if there is more than one row where FirstName = David and LastName = Gainer then the extra duplicate rows will be removed. So my table which looked like this:
你将看到列表中所有的列标题都出现在对话框中。要移除重复的记录,只需选择这些列标题,Excel将自动筛选除去(满足条件的)重复的记录。例如,在上表中,若要移除所有第一个名字和最后一个名字都相同的记录,即如果第一个名字为David且第二个名字为Gainer的记录多于一条,那么将移除多余的记录行。如下图所示的列表:

Now looks like the following after I remove duplicates.
在移除重复的记录后的列表如下:

Note that remove duplicates physically removes data from your spreadsheet. It does not hide rows. You can, of course, back out (undo) of remove duplicates if you make a mistake. If you wanted to first take a look at the duplicate values, you could use the new “Highlight Duplicate Values” feature that we have added to conditional formatting to do so.
注意,移除重复记录功能会从你的电子表格中彻底删除记录,而不是隐藏行。当然,如果你发现操作错误,你可以撤销刚才的移除重复记录操作。如果你想先看看这些重复记录值,可以使用已添加到条件格式中的”Highlight Duplicate Values”新功能。

In my next post I will finish up table-specific features by reviewing the work we did with table styles.
在下篇文章中,我将介绍列表样式,并结束对列表特殊功能的介绍。

Published Friday, November 04, 2005 3:13 PM by David Gainer

注:本文翻译自http://blogs.msdn.com/excel,原文作者为David Gainer(a Microsoft employee),Excel home授权转载。严禁任何人以任何形式转载,违者必究。

非常感谢Kevin的帮助和指导!

扫描二维码推送至手机访问。

欢迎转载或分享本篇文章。

本文链接:https://www.jcba123.com/article/1141

分享给朋友:

“移除重复的Excel列表(和区域)记录” 的相关文章

制表位怎么设置?Word排版不用制表符,只不过是瞎忙一场

制表位怎么设置?Word排版不用制表符,只不过是瞎忙一场

制表位是Word文档中非常重要的一项功能,在对文字进行排版时,我们经常要用到它。制表位能够根据标尺上设定的位置,来对齐内容,并且可以添加前导符。 下面我们来通过几个案例,让大家更清晰的了解“制表位”在排版中所起到的重要作用。   1、Word无序变有序 如下图所示...

一分钟学会用PPT制作线条字体

一分钟学会用PPT制作线条字体

制作PPT过程中,选图和选字体是对PPT有着非常大的影响的,完全可以取决于你最终的视觉效果。当然,有时候并非所有字体都合适你的PPT,这个时候,我们可能就需要自己动手来设计一种艺术字效果。这里就来教大家制作一种效果不错的【线条字体】,非常简单。   步骤一、先用文本...

自由开源免费的全能办公套件 LibreOffice v24.2.4

自由开源免费的全能办公套件 LibreOffice v24.2.4

更简洁,更快,更智能 LibreOffice 是一款功能强大的办公软件,默认使用开放文档格式 (OpenDocument Format , ODF), 并支持 *.docx, *.xlsx, *.pptx 等其他格式。 它包含了 Writer, Calc, Impress, Draw, Base...

PPT中如何批量给幻灯片加logo

PPT中如何批量给幻灯片加logo

第一步:打开PPT软件,点击视图菜单,选择幻灯片母版。   第二步:在幻灯片母版中,点击第一页,然后点击插入选项卡,选择图片。浏览并选择自己所需的LOGO图片,并将其缩放至合适的位置。 第三步:完成LOGO的插入后,点击幻灯片母版,然后关闭母版视图。此时,每一页的幻灯片都会...

PPT如何制作3D轮廓发光字

PPT如何制作3D轮廓发光字

第一步:打开PPT软件,创建一个新的空白演示文稿。您可以选择一种颜色来填充背景。然后,插入一个文本框,并输入所需的文字。选中文本框并右击,在弹出的快捷方式中选择"设置形状格式"选项。在打开的"设置形状格式"窗格中,单击"文本选项"下的"文本填充与轮廓"图标。将"文本填充"设置为"无填充",将...

PPT屏外取色使用指南

PPT屏外取色使用指南

先,打开PPT软件并创建一个新的空白演示文稿。接着,新建幻灯片并插入一个圆形。选中该圆形,点击形状填充选项中的"取色器"。现在,只需按住鼠标左键不放,您就可以将取色器拖动到幻灯片以外,甚至是屏幕以外的任何位置,轻松获取所需的颜色。这一便捷功能将大大提升您在PPT制作过程中的工作效率。...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。