Master Excel Tables with AutoFilter and Subtotal掌握Excel表格与自动和小计
Posted on April 9, 2008 at 5:23 am张贴于2008年4月9日在上午05时23分
How much of Microsoft Excel are you using?有多大的Microsoft Excel您使用的呢? I thought so.我以为如此。 Get ready because we’re stepping it up another notch. Excel is a powerful but often underutilized tool.做好准备,因为我们正在加强它的另一个缺口。 Excel中是一个功能强大,但往往充分利用的工具。 Many of us use it every day to plan and track budgets, analyze marketing data, and occasionally to do more important things such as manage the office March Madness pool.我们很多人使用它每天都在计划和预算的跟踪,分析销售数据,偶尔做更重要的事情,如管理办公室三月疯狂池。 Several Online Tech Tips posts have already covered clever but unfamiliar functions like几个在线技术秘诀的职位已经涵盖聪明,但不熟悉的功能,如 VLOOKUP vlookup and和 SUMIF sumif . 。 Now it’s time for another round of Outrageous Excel Tips!现在的时间为另一轮的离谱Excel的秘诀!
I’m going to illustrate two Excel features which, used in concert, make tabular analysis a snap.我要说明两个Excel功能,所用的音乐会,使表格分析管理单元。 Tabular data is what you get from a database extract or CSV file.表格数据是您得到什么从数据库中提取或CSV文件。 The AutoFilter and oft-overlooked Subtotal functions, like peanut butter and chocolate, are meant to be used together. They provide an easy way to “code” a spreadsheet to do subsets, sums, averages, counts, and more. 自动和经常忽略了小计的功能,如花生酱和巧克力,是要一起使用他们提供一种简单的方法来“代码”一试算表做子,总结,平均值,计数,及更多。
The Excel table below is an extract of our company’s purchases by department. Excel表下面是摘录我们公司的采购部门。 We have a typical “header” row, followed by 11 data rows.我们有一个典型的“头”行,其次是11月的数据行。 You can see the functions I included for this table: Sum, Count, Min and Average.你可以看到的职能i列入此表:总之,计数,闵和平均水平。 More about them later.更多关于他们稍后。
Now, the boss comes in and needs to see just how much advertising airtime the Marketing people are purchasing, and how much we are paying.现在,老板来在和需求,看看有多少广告时段,营销人所购买的,和我们是多么支付。 AutoFilter gives us the power to make entire rows visible or invisible based on cell contents.自动赋予我们的权力,使整个行的有形或无形的基础上细胞的内容。 The Subtotal function updates the Sum, Count, Min and Average accordingly.小计功能更新的总和,计数,闵和平均。 Let’s quickly add an AutoFilter.让我们快速添加一个自动的。
Excel AutoFilter Excel的自动筛选
To add AutoFilter, select the entire range of cells, including the header row containing the column labels (A1:F12).新增自动,选择整个单元格范围,包括标题行包含列的标签(格A1 :按F12 ) 。 Then use Data -> Filter -> AutoFilter.然后使用数据-> “过滤器- >”自动筛选。 Now you can see the filter indicator above each column in the table:现在,您可以看到筛选指标,上述每个列的表:
The neat thing is this: click on any column heading, and AutoFilter gives you a drop-down list of values in the column for you to select from, and filters the entire table for the result:该整齐的事情是这样的:点击任何一个栏位标题,并自动为您提供的下拉式清单列中的值为您选取,和过滤器对整个表的结果:
The lists are dynamic based on table contents, so adding a row or changing an existing value means the drop-down list is updated also.名单是动态的基础上表内容,所以加入一排或改变现有的价值是指下拉列表更新也。 You can show all values (default), select just one value, or create a custom filter based on boolean logic.您可以显示所有的价值观(默认) ,选择只有一个价值,或者建立一个自定义过滤器基于布尔逻辑。 In this example we need to select the “Airtime” value.在这个例子中我们需要选择“通话时间”的价值。
The result is:结果是:
AutoFilter acts by making rows visible and invisible.自动的行为,使行有形及无形。 The original eleven data rows are still present, although some are invisible based on the selected filter.原来的11数据行仍然存在,虽然有些是无形的基础上,选定的过滤器。 A2:F12 is still data range.答2 :按F12仍然是数据范围。
We quickly see the two “Airtime” buys in this dataset, and the average price paid is $5000.我们很快地看到“两个时段, ”买在这方面的数据集,以及平均所付出的代价是5000元。 Use the drop down filters to select all values again, or select a different value, and do it on any number of columns.使用下拉过滤器来选择所有值一次,或选择一个不同的价值,这样做对任何数目的列。 Depending on your table, some columns will make sense for filtering and others may not.根据您的表中,一些栏目将作出明智的过滤和其他可能不会。
Excel Subtotals Excel中的小计
In this example, the values for Sum, Count, Min, and Average update based on the filter automatically because of the powerful Subtotalfunction Subtotalfunction.在这个例子中,值总和,计数,安民,和平均更新的基础上,过滤器会自动因为强大的subtotalfunction subtotalfunction 。 Subtotal operates only on visible rows of data in a range, so it’s great in combination with AutoFilters.小计只在可见的资料列在一个范围内,因此它的伟大,在结合autofilters 。 Subtotal is also simple to set up. The syntax for Subtotal is:小计,也是简单的成立。语法小计是:
=Subtotal(function#, range) =小计(功能编号,范围)
Okay, you do have to know the “function #” which is a pain. Are you listening MicroSoft?好吧,你要知道“功能# ”这是一个痛苦。你听微软? Here is the list of commonly used functions with Subtotal.这里是名单常用的功能,与小计。 Others can be accessed by searching Excel Help:别人可以访问搜索Excel帮助:
| Function #功能# | Function Name函数名称 |
| 101 | AVERAGE平均 |
| 102 | COUNT计数 |
| 104 | MAX最高 |
| 105 | MIN民 |
| 109 | SUM总结 |
In the example the Sum, Count, Min and Averages are obtained by these respective formulae:在例子的总和,计数,闵和的平均数,得到了这些各自的计算公式:
SUM =Subtotal(109,F2:F12) 总结 =小计( 109 , F2的:按F12 )
COUNT =Subtotal(102,F2:F12) 计数 =小计( 102 , F2的:按F12 )
MIN =Subtotal(105,F2:F12) 民 =小计( 105 , F2的:按F12 )
AVERAGE =Subtotal(101,F2:F12) 平均 =小计( 101 , F2的:按F12 )
Now that you have seen the power of AutoFilter and Subtotal , go give it a shot.现在你已经看到了权力和自动小计 ,请给它一个镜头。 After all, Fantasy-League baseball is just starting.毕竟,幻想-棒球是刚刚开始。
Pete Kushmeider, Writer and blogger皮特kushmeider ,作家和Blogger
Technorati Tags: Technorati标记: Excel Excel中 , , Data Analysis数据分析
Popularity: 2% [人气: 2 % [ ? ? ] ]
If you enjoyed this post, make sure you 如果您喜欢这个职位,请务必 subscribe to my RSS feed 订阅我的RSS馈送 ! !
» Filed Under »提交下 MS Office Tips的MS Office的秘诀
Related Posts相关文章
- Microsoft Excel Basics Tutorial - Learning how to use Excel Microsoft Excel的基本教程-学习如何使用E xcel
- Excel Basics - How to use the Conditional Sum wizard Excel的基本要求-如何使用有条件的总结向导
- Excel Tutorial - How to make a simple graph or chart in Excel Excel的教程-如何使一个简单的图形或图表在E xcel
- MS Excel Tips and Tricks – How to count things in Excel MS Excel的秘诀与技巧-如何计数的东西,在E xcel
- Excel Tutorial - Example of how to use the VLOOKUP function Excel的教程-例如如何使用V LOOKUP函数
























