ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 10905|回复: 19

Tables Part 4:自动筛选的改进

[复制链接]

TA的精华主题

TA的得分主题

发表于 2006-4-12 11:19 | 显示全部楼层 |阅读模式

[Point=2]

Tables Part 4: AutoFilter improvements: much more than just multi-select …

自动筛选的改进:远远不仅是多项选择

Sorting and filtering are two of the most important types of basic

analysis that you can do with data. In Excel 12, we have improved

sort and filter functionality to better expose common tasks, to make key tasks simple, and to enable scenarios that were not possible in earlier versions. We have done work in AutoFilter, our sort

functionality (Data|Sort), and in PivotTables. I will cover the first two (AutoFilter and Sort) in posts this week and PivotTables in a few weeks when I review all our PivotTable work. Today, I will focus on AutoFilter.

排序与筛选是分析数据的最基本的两种方式, EXEL12 中, 我们的改进使选择与筛选的功能更加强大,普通任务一目了然,关键任务更加简单,使以前版本中不可能的场景成为可能。

我们还在自动筛选,排序功能(数据排序),数据透视表方面做了改进。我将在本周发贴谈到前两个问题(自动筛选与排序),数据透视表将在几周后我收到我们所有的资料后谈到。今天,我将主要谈一谈自动筛选。

Several of our goals for AutoFilter were driven by a couple of our top customer requests. Specifically, in Excel 12 we have

为了满足客户的最主要的一些需求,自动筛选功能,特别是在EXEL12中,设定了以下几个目标:

  • Enabled multi-select in AutoFilter, so you can select any number of items for your filter condition
  • Added the ability to sort and filter by colour
  • Increased the limit of items in the AutoFilter dropdown from 1,000 items to 10,000 items
  • 允许在自动筛选中多项选择,这样你可以在筛选条件里任意选择所需的项目。
  • 增加排序与筛选颜色的功能。
  • 把自动筛选下拉菜单中最多显示1000项增加到10000项。

Additionally, we have

另外:

  • Added a “quick filter” feature that enables data-type-specific filtering
  • Added date grouping to date AutoFilters
  • Made it possible to re-apply a set of filters with one button click
  • Provided more UI to help users figure out what filters are applied to a range/table
  • 增加一个“快速筛选”功能,可以按指定数据类别来筛选。
  • 自动筛选中增加了数据分组功能
  • 单击一次即可重新筛选。
  • 提供更多的界面以帮助用户识别当前区域或工作薄使用的筛选方式。

Let’s take a closer look. The first thing we tried to do was to make it easier to turn on AutoFilter by making it part of the “Sort & Filter” commands on the Sheet tab in the Excel ribbon (the tab that is shown by default).

现在让我们来详细了解一下。我们尝试做的第一件事就是让自动筛选功能成为工具栏按钮中“排序筛选”命令的一部分。


Sort & Filter Chunk

If you are a user of AutoFilter today, one of the first things you will notice is that we are now referring to this functionality as “Filter”. (You may also notice that "Sort Descending" should say "Sort Z to A" - that's a bug in current builds.) We did a lot of usability work in this area, and we determined that users that had used AutoFilter before had no trouble figuring out the new name, while users that had never use AutoFilter before were much more likely to understand and try the feature when it was referred to as “Filter”. (For the duration of this post, I will refer to the feature as the Filter feature). Once you have turned on Filter, the next thing that a current user of AutoFilter will notice is that the interface has been completely revamped.

如果你现在经常使用自动筛选功能,你会发现我们把这种功能叫做筛选(你还会注意到降序排列叫做ZA排列,这实际是一个bug。)我们在这个方面做了很多实用的工作。以前用过自动筛选功能的用户会很容易就发现名称的变化,而以前没有用过此功能的用户会更容易尝试此功能。(在本贴中,我将用FILTER FEATURE 来指代此功能)当你点击筛选按钮,你会注意到界面已完全改变。


Sort options remain at the top of the dropdown, but we have updated the text to reflect the data being filtered (“smallest to largest” for numbers, “oldest to newest” for dates, etc.). We have added the ability to sort by colour (more on that later). We’ve added a way to quickly and easily remove all filter conditions from a single column. Below that we have some filter options (more on that in a moment) and finally we have the filter items themselves.

排序选项仍然在下拉菜单的最上部,但是更新了文本来说明被筛选的数据(最小到最大用于数值,最早到最新用于日期)我们增加了对颜色的排序功能(稍后介绍更多)。我们还提供了在单列中快捷取消筛选的方法。其下方有一些关于筛选的选项(稍后马上介绍),最后面是筛选项目本身。

Let’s look at filtering in more detail, starting with multi-select. In previous versions of Excel, if you wanted to multiple-select items, you needed to use the Custom dialog, and that limited you to two choices. In Excel 12, you can simply select the items you want to see included in your filter and press OK. This is much faster, easier to discover, and supports as many items as you want.

让我们先从多项选择开始来更多的了解一下筛选功能。在早期的Excel版本里,如果你想要进行多项选择,你必须使用自定义对话框,而且你只能有两个选择。但在Excel 12里,你可以轻松的选择你想要的筛选项目,然后按OK即可。现在可以更加便捷的查找你想要的任何项目。


Excel 12 makes it possible to express more complex filtering conditions than just clicking individual items. It does this by providing filtering options based on the data type of your column – we are currently referring to this as “quick filters”, but we may come up with a better name by the time we ship. Say, for example, I’m looking at a record of sales for the past couple years and I want to see how much revenue I made last month and which sales brought in the most money. By clicking on the filter dropdown on my date column I’m presented with a large list of date filters, among which is the option to filter records to last month.

Excel 12能够支持更复杂的筛选情况。这项功能根据你设置的筛选选项进行操作。筛选选项的依据是的数据类型栏——也就是我们目前所称之为“快速筛选”的功能。我们会在最终版本中使用一个更好的名字。比如说,我正在看一份过去两年的销售记录,我想知道上个月有多少收入和那种销售挣的钱最多。点击我的数据列上的筛选下拉菜单, 便会呈现出一大列筛选数据, 这些数据中包含了上个月的筛选纪录选项。


As you can see from the picture above, Excel offers an array of date filters that make filtering by different date ranges a snap. What makes these filters special is that they are based on the system clock so my “last month” filter will always filter to the previous month when the filter is reapplied. Setting up these types of dynamic filters were not easily possible in previous versions.

从上图可以看出,Excel提供了一系列日期选项来筛选不同日期区域的数据。这些筛选选项的特殊之处就在于它们是以系统时间为基础的,所以当我们选取“上个月”时,筛选的总是筛选功能运行时的上个月。在较早的版本中对动态筛选的设置还比较困难。

We have also added “quick filters” for numeric data. For example, after I filter by date, I can then filter my profit column to only show me sales that were above average.

我们还对数据的筛选增加了快速筛选功能,例如,当我按日期筛选完成后,我还可以对“利润”这一列进行筛选,只显示那些大于平均值的的项。


In the spirit of completeness, Excel 12 also provides text-based filters for working with non-numeric columns.

为了力求功能的完整,excel 12 对没有数字的列也提供了文本筛选功能


Another feature for date-based columns is that the filter dropdown groups dates by day/month/year rather than displaying a flat list of dates so that it’s easier to drill-down and pick a specific series of dates. If you wanted to select all of the dates in a particular month for instance, you can do so in two clicks.

对日期筛选的另一个特点是在筛选的下拉列中日期是按年月日排列而不是简单的日期的排列,这样,如果要筛选一个特定的日期系列就容易多了。比如,当你想筛选日期列中的某个特定的月时,点击鼠标两次就可以完成了。


[/Point]

Kevin, thanks for your support

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

Tables Part 4:自动筛选的改进

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-4-12 11:19 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
[Point=2]

In Excel 12, we have gone beyond the ability to filter on values in cells. We now also support the ability to filter by colour color. For example, if I have a table of data I’m working with and I’m using orange and red fill as a way to mark rows that need special attention, I may want to just filter to see everything I have marked red. To set that up is just a few clicks.

excel12中,我们能做的已超出了对单元格中数值的筛选,现在我们还能通过给单元格涂颜色进行筛选。例如,当我处理一张工作表的数据时,我用桔黄色和红色来填充某些需要特殊关注的行,这样我可以通过筛选来查看所有我标记了红色的内容,几次点击就可完成。


Filter by colour allows you to filter by font colour as well as cell fill colour. In addition, it also recognizes conditional formats on cells including regular formatting, gradient fills, and conditional formatting icon sets (which I discussed in previous posts here and here).

颜色筛选不仅支持单元格颜色,也支持字体颜色。另外,也能识别单元格的条件格式,包括正常格式,斜体填充和条件格式图标设置。(以前的贴中已提到过)

In the same way that we have enabled filtering by colour, we have enabled sorting by colour which, predictably enough, allows you to sort your data based on cell or background colour. I will run through an example of that in the next post.

与颜色筛选一样,我们同样可以用颜色进行排序,足够的颜色可以使你基于单元格或背景颜色排序。下一贴中我将举例演示。

Excel 12 makes it a bit easier to notice when a table has been filtered or sorted as well as easier to figure out what the sort or filter is. For any column that has a filter set, Excel changes the filter dropdown icon to denote its filter state. The same thing happens, although a different icon is used, for columns that have been sorted. In the screenshot below, you can spot which columns were used to sort and filter the table. In addition, you can get more information by hovering the mouse over the icon ... Excel will show a tooltop that describes the sort and filter state of the column.

当一个列表处于筛选或排序状态时,Excel 12 使用户更容易注意到并看出是哪一种筛选或排序。因为每一列都有一个筛选标识,excel 通过改变筛选下拉图标来指示筛选状态。同样的,通过在被筛选的数据列使用的不同的图标,下图中,你可以指出哪一列被用来筛选或排列整个列表。另处你可以移动鼠标指向图标从而得到更多信息……Excel 将在你鼠标所指处显示筛选排列状态。


Filter buttons and tooltip

As in previous versions, a sort or filter is only applied at the time the sort or filter is created (or a query is refreshed if the table is connected to external data). This is necessary so that data doesn’t shift around or “disappear” as you are editing it. Of course there will be times when a sort or filter becomes stale and needs to be reapplied, like after you have copied and pasted a bunch of new records to the bottom of a table or range. Excel 12 makes it easy to reapply all sort and filter conditions on a table via a single click of a ribbon button.

和以前的版本相同,排列或筛选的命令只在排列或筛选被建立时有效(当列表有外部数据链接时需要刷新)。这样才不会在你编辑数据时造成数据移动或消失。当然,这样就会偶尔出现一种情形:一个排序或筛选过时而需重新执行,比如,当你复制粘贴了大量的数据到一个列表或一个区域的底部时。Excel 12使能够通过点击一次工具按钮来重新执行筛选或排列。


Reapply Command on the Ribbon

As you can see from the screenshot above, it also takes a single click to remove all filters from all columns in a table.

如上图所示,取消筛选和排列也只需击鼠标一次即可完成

The last thing I want to mention before closing is that everything I have discussed here can be used without the table feature, however there are certain advantages to using them in conjunction with tables. Each table has its own AutoFilter whereas the sheet can only have a single AutoFilter, so if you need to filter more than one dataset on a sheet, than tables are your only option. Similarly, tables also remember their own sort conditions, so if you need the ability to maintain multiple sort states across a sheet than tables will do the trick.

在结束前我想提到的最后一件事是我所说的所有功能可以在不涉及列表特性的前提下使用,当然和列表结合后还会有一定的优势。虽然工作表只能有一个自动筛选,但是每个列表都可以有自己的自动筛选。 所以当你在工作表中需要不止一个数据集时,列表是你唯一的选择。与此类似,列表也记忆自己的排序条件,所以如果你需要在整个工作表中进行多重排列时, 可以借助列表来实现。

Next time, more on sorting.

下次,我们将继续讲解排序

Published Tuesday, November 01, 2005 3:30 PM by David Gainer

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

[/Point]
[此贴子已经被作者于2006-4-12 11:20:41编辑过]

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-4-12 12:56 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

TA的精华主题

TA的得分主题

发表于 2006-4-12 16:12 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
谢谢版主。又得要学习一阵子了。[em25][em24][em26]

TA的精华主题

TA的得分主题

发表于 2006-4-12 17:24 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2006-4-12 19:43 | 显示全部楼层
呵呵,这么先进的筛选,方便多了。

TA的精华主题

TA的得分主题

发表于 2006-4-12 21:01 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2006-4-20 13:54 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
[em08]

TA的精华主题

TA的得分主题

发表于 2006-4-22 09:50 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
不过OFFICE的功能越来越强,不知道要求有多高

TA的精华主题

TA的得分主题

发表于 2006-12-22 16:37 | 显示全部楼层
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-12-26 15:06 , Processed in 0.051507 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表