如何按日期“汇总”数字 [英] How to 'Roll up' numbers by date

查看:66
本文介绍了如何按日期“汇总”数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我正在处理的数据列表。我试图在白天将每件特定机器类型的总碎片送入。对于每一天,每台机器运行多次,我想写一个宏来"汇总"这些数据并将其输出到一个单独的工作表。 


任何帮助非常感谢。 







解决方案

您好


您可以使用Excel的SubTotal来获取它

p>

http://msdn.microsoft.com/en-us /library/office/ff838166.aspx


如果您熟悉SQL,可以创建一个Query来按StartDate列对Excel数据进行分组,并使用Query作为QueryTable。第二个是优雅的,因为一旦查询作为查询表的一部分输入,您需要做的就是刷新
RolledUp表..它将根据更新的数据自动获取。


请查看QueryTables


http://msdn.microsoft.com/en-us/library/office/ff198271.aspx


http://vbadud.blogspot.in/2008/05/using-excel-as-database.html


干杯


Shasur



Below is a list of data I am working on. I am trying to get total pieces fed onto each specific machine type by day. For each day, each machine runs multiple times and i would like to write a macro to 'roll up' this data and output it on to a separate sheet. 

Any help would be greatly appreciated. 

解决方案

Hi

You can use SubTotal of Excel to get it by day

http://msdn.microsoft.com/en-us/library/office/ff838166.aspx

If you are familiar with SQL, you can create a Query to group the Excel data by StartDate Column and use the Query as part of the QueryTable. The second one would be elegant as once the query is entered as part of query table, all you need to do is refresh the RolledUp sheet .. it will automatically fetch based on the updated data.

Please have a look at QueryTables

http://msdn.microsoft.com/en-us/library/office/ff198271.aspx

http://vbadud.blogspot.in/2008/05/using-excel-as-database.html

Cheers

Shasur


这篇关于如何按日期“汇总”数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆