Tables Part 5: Everything you wanted to know about sorting in Excel 12
表格部分 5: Excel 12中的排序问题
I mentioned in my previous post that the three-condition limit on sorting (Data|Sort) has been removed in Excel 12. As someone correctly pointed out in a comment many posts ago, this means the current sort dialog has changed in Excel 12. Here’s what the new dialog will look like (as always, all the details aren’t finalized, but the key features are clear) if you were in the middle of trying to sort a table by 5 columns:
我在以前的贴中已提到过,在Excel12中去除了排序(数据|排序)的三个条件限制。正如有人在以前的贴中指出的,这意味着在Excel12中,排序对话框改变了。下面就是当试图在新的对话框对5列进行排序的的样子(和以往一样,细节上没有最终确定,但主要特点很清晰)。
[Point=2]
The dialog is similar in behaviour to the Conditional Formatting Rules Manager discussed in an earlier post. To create sort conditions, users just need to just click on the “Add” button – users can now sort on up to 64 columns – and specify what they want the sort criteria to be. Just like with filters, sorts are smart about data types so we use that information to offer settings that are more descriptive and easier to understand than “ascending” and “descending’. For example, for text columns you will see “A to Z” and “Z to A”, for numeric columns you will see “smallest to largest” and “largest to smallest”, and for date columns you will see “newest to oldest” and “oldest to newest”. Sort conditions can be reordered using the buttons at the top of the dialog. Sort conditions can also be copied to save time. The Options button allows users to specify whether the sort should be case sensitive and allows users to specify the sort orientation (both of these features exist in Excel 2003).
这个对话框的特性和以前讨论的条件格式类似。 若创建排序条件,用户只需点击“增加”按钮 – 用户即可进行64列以上的排序 – 同时指定他们需要的排序标准. 和筛选功能类似,排序可以智能识别数据类型,我们利用此信息来设置比“升序”和“降序”更清晰易懂的排序描述 例如,对于文字列,你会看到 “A 到 Z” 和 “Z 到 A”, 对于数字列,你会看到 “最小到最大” 和 “最大到最小”, 对于日期列,你会看到 “最新到最老” 和 “最老到最新”. 排序条件可以用对话框最上面的按钮进行重新排列. 排序条件也可以复制以节省时间. 选择按钮允许用户指定排序是否需区分大小写,也允许用户指定排序方向 (这两种特点在 Excel 2003中都有).
To see a bit more of the new functionality we have enabled in Excel 12, let’s take a look at another example. Assume I have the following table which contains both manually-applied and conditional formatting (ignore the data – I used RANDBETWEEN() to generate that).
为了更好的理解我们在Excel 12中激活的新功能内容, 让我们看另外一个例子. 假设下面的表格里包含手工设置的格式和条件格式 (不要在意这些数据 – 我是用RANDBETWEEN()函数生成它们的).
One of the common requests we hear from users is the desire to sort by colour, either manually applied or applied by conditional format. In Excel 12, we bring you exactly that – in addition to cell value, you can sort by
- background colour (however applied)
- font colour, (however applied)
- cell icon (applied via conditional formatting).
For example, I might set up several conditions on the table of data we just looked at …
我们从用户处得到的一个需求是按照颜色排序, 无论颜色产生于手工设置的格式还是条件格式 在 Excel 12中, 我们带给您一种新方法 – 除了单元格数值, 你还可以按以下内容排序:
背景颜色 (无论是怎么设置的)
字体颜色 (无论是怎么设置的)
单元图表 (通过条件格式设置的).
举例,我可以在表格中的数据上设置几个条件,我们看 …
… and when I press OK, Excel will apply the sort appropriately. Notice the filter buttons again show me the state of each column.
当我点一下OK, Excel 将会恰当的进行排序. 请注意,筛选按钮将再次显示每一栏的状态
I want to mention two other improvements that we have made that I think certain people will really appreciate. First, we have made it possible to specify a sort order of “Custom List” at every level of sorting. Second, we have made it possible to create a new custom list from within the context of the Sort dialog.
我想提一下我们所做的另外两个改进,一些用户会觉得很有益处 首先, 我们实现了在每一层排序都可以特定一个“自定义序列” 第二,从排序对话框里可创建新的自定义序列.
(We have also added the ability to sort by colour or cell icon to our in-grid filter capabilities (nee AutoFilter). Say I started with the following table …
我们也在表格内置的筛选功能(又称自动筛选)中加入了对颜色或单元格图标进行排序的能力 我将用下面表格演示 …
… and I wanted to see all the yellow and red items at the top. I would simply use the sort/filter button to sort first by red …
我想在上面看到所有黄色和红色项目. 我只简单的使用排序/筛选按钮先对红色进行筛选
… which would group the red values at the top …
它将红色编为一组显示在上面
… and I would repeat for the yellow items, which would leave me with a table that was sorted like this.
然后重复操作黄色的项目, 就会出现下面表格中的排序结果
Essentially, what sorting by color does is move all rows that meet the criteria all the to the top. What follows after is not specified – what matters is that rows with a certain format are moved to the top. For convenience sake, we have also added this capability to the context menu in a table or Filtered range. For example, in my table above, I could have just as easily right-clicked on a cell with red fill and selected “Sort by this cell’s fill color” in the “sort and filter” submenu.
实际上,颜色排序所作的就是将所有符合条件标准的行放到最上面. 后面的都是没有特殊指定的 – 所涉及的就是将指定的格式的行放到上面来. 方便起见, 我们也可以把这个功能增加到表格或已筛选区域的文本菜单中 例如,在上面的表格里, 我可以简单的右击红色单元格,然后在 “排序与筛选”子菜单选择 “按照此单元格填充颜色排序”.
(That about wraps up my overview of sort and filter improvements. In my next post I will talk about a new feature that allows easy removal of duplicates from a table of data.
Update to post to clarify sorting by multiple colours concurrently
I want to throw in one more example to illustrate how it is possible to sort on multiple colours at one time. For example, if you had a table with a bunch of formatting on one column and you wanted to sort the table by that formatting ...
这些就是我对排序和筛选的改进的总体认识. 在下一篇文章中,我会谈及一个新的特性,即轻松删除数据表格中的重复值.
补充一个新方法来解释负责颜色排序问题
我还想举一个例子来阐明如何一次对复合颜色进行排序. 例如, 如果你有一个表格,他的一个列里面有多重的格式,而你想对其进行排序
... you would simply bring up the sort dialog and specifiy the order of colours that you wanted to sort by ...
你只需要简单的调出排序对话框并设定你需要排序的颜色的程序
and press OK. The table would sort by the conditions you specified.
并点击OK. 表格将根据你所指定的条件进行排序
I hope that makes sense and clarifies things.
我希望这些功能可以帮助你更好的分析数据。
[/Point]
注:本文翻译自http://blogs.msdn.com/excel ,原文作者为David Gainer(a Microsoft employee),Excel Home 授权转载。严禁任何人以任何形式转载,违者必究。
[此贴子已经被作者于2006-4-29 14:10:07编辑过] |