当前位置:首页 > 办公设计 > Office教程 > Tables Part 3_在列表中使用公式(一)_Excel 2007新知

Tables Part 3_在列表中使用公式(一)_Excel 2007新知

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

Tables Part 3: Using Formulas with Tables
列表(第三部分):在列表中使用公式

One of our goals with tables was to create a set of features that reduce the overall maintenance required to keep a spreadsheet functioning well over time. This involves making spreadsheets less prone to error, as well as making them more understandable days, months, and years after the spreadsheet was created. Rethinking the interaction between tables and formulas proved to be an important part of meeting that goal.
在以前的电子数据表格中,为了使其正常工作,用户需要大量的维护工作,我们引入列表的一个目的就是减少这部分维护工作,它可以使电子数据表格更不容易出错,也可以使生成的电子数据表格更好的理解年月日。列表和公式的协同工作被证明是实现这个目标的重要部分。

As many readers have presaged, Excel 12 provides some new ways to reference tables and parts of tables. We refer to our work in this area as “structured referencing” (that is a working title, so it may be called something else when we ship the product). In a nutshell, the structured referencing feature allows you to reference a table and/or subsets of the table directly by name as opposed to by cell coordinates. The feature is similar in concept to named ranges with a few crucial differences. First, the names that can be referenced are automatically generated when the table is created. Specifically, this includes the name of the table itself (which by default is something like “Table1”), and the names of all the columns. Also, the names are automatically removed as columns are deleted or the entire table is deleted. Finally, and perhaps most importantly, the names automatically adjust as the table grows and shrinks. As a result, the majority of the headaches of maintaining named ranges go away with structured referencing.
正如很多读者预测的一样,Excel 12提供了一些新的方法用于引用整个列表和部分列表,我们谈到的这部分工作成为“结构化引用”(这是开发过程中的名称,在最终发布的产品中可能使用其他的名称)。简单的说,相比过去我们只能通过单元格坐标进行引用,结构化引用功能使得用户可以通过名称引用整个列表或者部分列表,这个功能和区域名称的概念类似,只有很少的一点区别。首先,在生成列表时会自动产生一个可以引用的名称,这包括列表本身的名称(系统缺省为类似于“Table1”的名称)和全部列的名称,其次,这些名称会随着列或者列表的删除而消失,最后,可能是最重要的一点,名称会随着列表的扩展和收缩而自动调整。使用结构化引用将能够解决令人头痛最主要的问题——名称的维护。

So how is all this manifested in the product? Structured referencing represents an addition to the syntax for formulas in Excel. Here are the basics of how it works.
系统如何识别这些引用呢?结构化引用可以应用于Excel的公式中,下面我们来简单介绍一下它是如何工作的。
· A reference to a table looks like this: =Table1, so if you wanted to sum the values in a table, you could use =SUM(Table1). Note that =Table1 returns all of the data in Table1 without the headers – this is because many of the common functions that work on ranges, like VLOOKUP, assume no headers.
列表的引用类似于=Table1,用户使用=SUM(Table1)就可以对整个工作表数据进行求和,注意=Table1将返回除了标题之外列表中的所有数据——这是因为一般的使用区域作为参数的函数如VLOOLUP,都会假设该区域不包含标题。
· A reference to a column looks like this: =Table1[Column1]. Again, this reference returns just the data. So, for example, if you wanted to SUM a column, you could type =SUM(Sales[2004]).
列的引用类似于=Table1[Column1],同样的这个引用也只是返回数据,例如用户需要对某列求和,那么可以输入公式=SUM(Sales[2004])。

There’s more to the syntax than that, but first I want to talk about something I personally love – integration between structured referencing and Formula AutoComplete. The Formula AutoComplete feature I talked about a week ago is fully integrated with structured references – meaning Formula AutoComplete for tables names as well as columns within tables is possible. For example, here is what it would look like to build the structured reference pictured above. First, let’s start with just a table.
除了上面的例子,还有很多语法格式,在继续讲解之前我想解释一个我个人很喜欢的东西——结构化引用和公式记忆式键入功能的结合,公式记忆式键入功能完美的和结构化引用结合在一起,也就是说列表名称和其中列的名称可以在公式记忆式键入功能中使用。例如,我们来看一下如何应用上图中生产的结构化引用,首先,我们的工作表中只有一个列表。

Next, I type “=SUM(S”. You will note this lists everything starting with “S” in the Formula AutoComplete drop-down, including formulas, named ranges, and my table, “Sales”.
接下来,我输入“=SUM(S”,你可以注意到在公式记忆式键入下拉列表中,所有的以“S”开头的条目会出现,这包括公式、区域名称和我的列表名称“Sales”。

After I select my table “Sales”, I can now see all the columns in the table.
我选择“Sales”之后,就可以看该列表的区别列名称。

And with a single click or keystroke, Excel 12 completes the reference.
只需要单击鼠标或者按下相应的键,Excel 12将输入这个引用。

All I need to do is close the parenthesis and press enter and I am done. We believe this will improve accuracy and efficiency.
剩下的我所要做的就是输入右括号,并按下回车键,我们确信这种方式会提高公式输入的准确性和效率。

Structured references can be used inside tables as well, and here Excel has even more new behaviors. Say I’m looking at some sales figures and I want to calculate the percentage change in sales over the last few years for each row in my table. My table looks something like the screenshot below.
结构化引用也可以用于列表内部,Excel为其提供了一些新的功能,比如我在查看销售图表,能够计算出列表中每一行相对于过去几年变化的百分比。我的列表如下面的截屏图:

The formula I want is something like: =(FY05-FY02)/FY05. The first thing I want to do is add a column, so I start typing “Percent Growth” after the last column in my table.
我需要一个像=(FY05-FY02)/FY05的公式,我要做的第一件事就是添加一列,在列表的最后一列之后输入“Percent Growth”。


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

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

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

分享给朋友:

“Tables Part 3_在列表中使用公式(一)_Excel 2007新知” 的相关文章

2分钟学会这几个Excel神技,从此告别加班!

2分钟学会这几个Excel神技,从此告别加班!

5.1你还来学习,给你点个赞!毕竟是节假日,这里小汪老师就不过多耽误大家时间了。分享几个简单实用的Excel神技,让大家在最短的时间内收获一些高效技巧。     所有数据加图表,让数据更加直观 数据太多,预览数据会比较吃力。如果我...

PPT打造《诛仙青云志》海报封面:全民学PPT

PPT打造《诛仙青云志》海报封面:全民学PPT

诛仙,网络四大名著之一,同时也是我最喜爱的一部小说,易老师我绝对是一个顶级的诛仙迷。当时,在传出要将诛仙拍成电视剧之前,我是灰常的期待和兴奋。熬了好久,终于等到开播了,但是看着看着却发现和期盼来的预想完全不成正比。越往下看,越是想把编剧给揍一顿!这么好的小说,既然就被这样给糟蹋了,简直就是战...

将多列的区域或数组合并成一列,就用TOCOL函数

将多列的区域或数组合并成一列,就用TOCOL函数

今天分享TOCOL函数的几个典型应用。 这个函数目前可以在Excel 365和最新的WPS表格中使用,作用是将多列的区域或数组转换为单列。函数用法为: =TOCOL(要转换的数组或引用, [是否忽略指定类型的值], [按行/列扫描]) 其中第二参数为0或者省略该参数时,表示保留所有值。为1表示忽略空...

PPT将形状设置为创意图片

PPT将形状设置为创意图片

1.单击工具栏插入下的形状,在形状下选择圆角矩形。 2.插入一个矩形后,单击黄色小图形,拉动到中间,制作出一个圆形矩形。 3.复制粘贴处五个同样的圆形矩形,选中所有矩形,单击绘图工具下的组合,在下拉菜单当中选择组合。 4.组合后选择图片或纹理填充,图片来源选...

PPT如何制作帘幕效果

PPT如何制作帘幕效果

首先,在素材网站上搜索并下载一张幕布背景图片。 第一步:打开PPT软件,创建一个新的空白演示文稿。然后,在幻灯片上插入刚刚下载的“幕布图片”,将其设置为整个幻灯片的背景。 第二步:再新建一个幻灯片,插入一张图片。注意选择图片格式而不是其他格式。点击选中该图片,然后选择“切换”选项...

从身份证号码中提取信息,这些公式必须会

从身份证号码中提取信息,这些公式必须会

今天咱们看看如何从身份证号码中提取出需要的信息。 如下图为所示,是一份模拟的员工信息表,A列是姓名,B列是身份证号码,C列是职级。 1、提取出生年月 D2输入以下公式,向下复制。 =–TEXT(MID(B2,7,8),”0-00-00″) 身份证号码中的第7位...

发表评论

访客

看不清,换一张

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