大师擅长表以AutoFilter和小结

张贴在2008年4月9日在5:23上午

Microsoft Excel是多少您使用? 我如此认为。 因为我们跨步它另一个山谷,准备好。  擅长是一个强有力,但经常利用不足的工具。 多数人的我们用途它每天对计划和轨道预算,分析营销数据,并且偶尔地做更加重要的事例如处理办公室3月疯狂水池。 数 网上技术技巧 岗位已经包括聪明,但不熟悉的作用象 VLOOKUP 并且 SUMIF. 现在是时间为另一个圆 粗暴擅长技巧!

我说明二擅长,用于音乐会,做的特点 表格分析 一个短冷期。 表格数据是什么您得到从数据库萃取物或CSV文件。 AutoFilter 并且经常俯视 小结 被认为一起使用作用,象花生酱和巧克力。  他们提供一个容易的方法“编码”报表做子集、总和、平均,计数和更多。

如下擅长桌是我们的公司的购买萃取物由部门。 我们安排典型的“倒栽跳水”列,由11数据列跟随。 您能为这张桌看作用包括的I : 总和、计数、分钟和平均。 更多关于以后他们。

clip_image002

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给我们力量使整个根据细胞内含物的列可看见或无形。 小结作用相应地更新总和,计数,极小和平均。 我们迅速增加AutoFilter。

擅长AutoFilter

要增加AutoFilter,选择细胞的整个范围,包括包含专栏标签(A1的倒栽跳水列:F12)。 然后用途数据-> 过滤器-> AutoFilter。 现在您在桌里能看过滤器显示在每个专栏之上:

clip_image004

整洁的事是这: 点击所有列标题,并且AutoFilter在专栏给您价值一张下拉列表为了您能选择从,并且过滤整个桌为结果:

clip_image006

根据桌内容是动态的名单,因此增加列或改变现有的价值手段也更新下拉列表。 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.

clip_image008

The result is:

clip_image010

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. A2:F12 is still data range.

We quickly see the two “Airtime” buys in this dataset, and the average price paid is $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

In this example, the values for Sum, Count, Min, and Average update based on the filter automatically because of the powerful Subtotalfunction. Subtotal operates only on visible rows of data in a range, so it’s great in combination with 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:

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)

COUNT=Subtotal(102,F2:F12)

MIN=Subtotal(105,F2:F12)

AVERAGE=Subtotal(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

Technorati Tags: ,

If you enjoyed this post, make sure you subscribe to my RSS feed!

» Filed Under MS Office Tips

Add to Delicious Save this page Mixx it Stir it up on Mixx
Reddit Add to Reddit StumbleUpon Stumble this page

Related Posts

One Response to “Master Excel Tables with AutoFilter and Subtotal”

  1. ( joe ) said on :

    Excellent article…it was exactly what I needed to learn to solve a challenge I had.

    Great work!


Please post your comments/suggestions!