ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

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

Tables Part 5:Excel 12中的排序问题

[复制链接]

TA的精华主题

TA的得分主题

发表于 2006-4-29 14:01 | 显示全部楼层 |阅读模式

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]

Published Wednesday, November 02, 2005 4:42 PM by David Gainer
Filed Under: Tables

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

[此贴子已经被作者于2006-4-29 14:10:07编辑过]

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

Tables Part 5:Excel 12中的排序问题

TA的精华主题

TA的得分主题

发表于 2006-5-20 13:38 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
比尔盖茨真不简单。

TA的精华主题

TA的得分主题

发表于 2006-6-1 15:10 | 显示全部楼层
太酷了!!!!!!!!!!!!!

TA的精华主题

TA的得分主题

发表于 2008-12-15 15:23 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
恩,了不起。
改变了一个时代的工作习惯。
有一次体会到2007是从用户的角度出发来看待问题,解决问题的。2003似乎从功能实现上来考虑问题。比如筛选就筛选,似乎很严谨,文斯不乱。2007就不同了,筛选也好,排序也好,不就是要对数据进行分析处理吗?!那干脆在筛选的工具菜单中也植入了排序的命令。非常体贴,我想这个思维突破是非常重要了。一切从用户的角度出发。
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

GMT+8, 2024-12-4 02:03 , Processed in 0.060850 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

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

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

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