如何按日期“汇总”数字 [英] How to 'Roll up' numbers by date
问题描述
以下是我正在处理的数据列表。我试图在白天将每件特定机器类型的总碎片送入。对于每一天,每台机器运行多次,我想写一个宏来"汇总"这些数据并将其输出到一个单独的工作表。
任何帮助非常感谢。
您好
您可以使用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
干杯
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
这篇关于如何按日期“汇总”数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!