Excel2007:对编辑公式功能的改进Part 3_新增函数.doc_第1页
Excel2007:对编辑公式功能的改进Part 3_新增函数.doc_第2页
Excel2007:对编辑公式功能的改进Part 3_新增函数.doc_第3页
Excel2007:对编辑公式功能的改进Part 3_新增函数.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Excel2007:对编辑公式功能的改进Part 3_新增函数Formula editing improvements Part 3: new functions对编辑公式功能的改进 Part 3:新增函数In addition to improving the formula editing UI in Excel 12, the team has spent some time adding to Excels function library. Over the years, customers have found new ways to combine and leverage the functions in Excel to build all sorts of things, but there remain many areas where our customers would like to see need new capability. This release, we have targeted three areas in which to improve our function library the Analysis ToolPak, SQL Server Analysis Services, and the most common requests we hear from customers.除了改进编辑公式的界面外,我们还在Excel 12的内置函数库上花了些功夫。多年以来,用户挖掘出许多新方法,整合和发挥Excel函数的功能,创建各式各样的公式。虽然如此,用户还是期望拥有更多新的函数。此版本中,我们瞄准了三个方面来扩充Excel内置函数库,它们是分析工具库,SQL Server Analysis Services和用户提出的最具代表性的需求。First, we have fully integrated the Analysis ToolPak functions into the Excel function library, making these functions first-class citizens and eliminating issues relating to the fact that they had been delivered as an add-in in the past. Users already find a great deal of value in these functions and, from Excel 12 on, they can rely on them to simply work the way the rest of the Excel function library works. This means users no longer have to run the add-in to use the functions, the functions will show up in Formula Autocomplete (see previous post), the functions will offer the same tooltips as other native Excel functions, etc. 首先,我们把分析工具库函数整合到Excel内置函数库中,使其成为“一等公民”,并取消了原来的加载宏。这些函数对用户十分有价值。从Excel 12起,它们就可以和其它Excel内置函数一样方便地使用。这意味着,用户不需要加载宏,可以直接使用这些函数。它们会出现在Formula AutoComplete功能提供的下拉列表中(见前面的帖子),且和其他内置函数一样也有相应的功能提示。Second, we have added a new set of functions that allow users to extract information from SQL Server Analysis Services. For the benefit of readers that are not familiar with SQL Server Analysis Services, let me give you a really high-level overview. In addition to its relational database product, SQL Server includes a feature named Analysis Services which provides business intelligence and data mining capabilities (for those interested, more information can be found here). In Excel 12, we have added a set of functions that give users the ability to retrieve SQL Server Analysis Services data directly into cells. There is a fair bit to cover in this area, so I will write a few posts on these formulas in a few weeks. 第二,我们还新增了一套函数,允许用户从SQL Server Analysis Services中获取数据。考虑到一些读者并不熟悉SQL Server Analysis Services,我先简单地概括一下。除了相关数据库产品外,SQL Server 还包括一个称为Analysis Services 的功能,提供商业智能和数据挖掘能力(有兴趣的读者可以在这里找到更多信息)。在Excel 12 中,这些新增的函数可从SQL Server Analysis Services 直接获取数据,存放到单元格里。由于涉及面较广,接下来的几周里,我会再写些帖子介绍这些函数。Third, weve added five commonly requested functions to the Excel function library:第三,我们新增了5个在用户提出的需求中具有代表性的函数,作为Excel的内置函数:IFERRORAVERAGEIFAVERAGEIFSSUMIFSCOUNTIFSHere is more detail on each:下面是这5个函数的介绍:IFERROR(Value, value_if_error)The most common request we hear in the area of functions is something to simplify error checking. For example, if a user wants to catch errors in a VLOOKUP and use their own error text opposed to Excels error, they have to do something like this using the IF and ISERROR functions: 我们收到关于函数的最具普遍性的需求,是用户要求简化错误值的处理过程。例如,想要截获VLOOKUP计算结果中的错误值,并将其替换为用户自定义的错误提示,就不得不采用像IF和ISERROR这样的函数组合。=IF(ISERROR(VLOOKUP(Dave, SalesTable, 3, FALSE), Value not found, VLOOKUP(Dave, SalesTable, 3, FALSE)As you can see, users need to repeate the VLOOKUP formula twice. This has a number of problems. First, it is hard to read and hard to maintain if you want to change a formula, you have to do it twice. Second, it can affect performance, because formulas are quite often run twice. The IFERROR function solves these problems, enabling customers to easily trap and handle formula errors. Here is an example of how a user could use it in the same situation:如您所见,这里两次运用了VLOOKUP公式。这样做会有几个问题。首先,维护公式比较麻烦,如果你想改动公式,就不得不修改两处。其次,它影响运算速度,公式往往会被多运算一遍。IFERROR函数解决了这些问题,它可以让用户方便地截获并处理公式算出的错误值。下例,我们采用IFERROR函数处理上述的情形:=IFERROR(VLOOKUP(“Bob”, SalesTable, 3, false), “Value not found”)Less to author, less to maintain, faster performance.与之前的公式相比较,该公式书写少了,维护少了,运算速度也更快了。AVERAGEIF(Range, Criteria, Average Range)Another very common request is for a single function to conditionally average a range of numbers a complement to SUMIF and COUNTIF. Accordingly, we have added AVERAGEIF, allowing users to easily average a range based on a specific criteria. Here is an example that returns the average of B2:B5 where the corresponding value in column A is greater than 250,000:另一个用户普遍关心的需求是,想要一个条件平均函数作为SUMIF和COUNTIF的补充。相应地,我们新增了AVERAGEIF函数,对在一定范围内满足某条件的数据进行求平均值。例如,在B2:B5单元格区域中按条件求平均值,条件是A列与之相对应的单元格的值大于250000。=AVERAGEIF(A2:A5, “250000”, B2:B5)SUMIFS(sum_range, criteria_range1, criteria1 ,criteria_range2, criteria2)COUNTIFS(criteria_range1, criteria1 ,criteria_range2, criteria2)AVERAGEIFS(average_range, criteria_range1, criteria1 ,criteria_range2, criteria2)A third very common question we hear is “how do I sum/count/average a range with multiple criteria”. For example, if a user had the following range, how could they sum “Value” where Fruit = “Apple” and Value = “One”. (译者注:Value = “One”应该改为Number= “One”)第三个非常有代表性的问题是,“如何对一个范围的数据进行多条件的汇总/计数/平均”。 举例,如图所示,怎样对满足Fruit = “Apple” 且 Number= “One”的Value列的数值求和。There are a number of ways to do this in Excel 2003 for example, our user could array-enter the following formula: 在Excel2003中,有许多方法可以做到这点比如,我们可用数组公式的方式输入下面的公式:=SUM(IF(C2:C17=Apple, IF(D2:D17=One, B2:B17, 0), 0)But the formula is hard to set up correctly, many users do not know about array formulas, and it is harder to

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论