合并多个表

编程入门 行业动态 更新时间:2024-10-24 06:34:17
本文介绍了合并多个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有很多表格来描述我的小公司的不同种类的支出和收益,而且我发现像这样的示例中的合并表的方法不容易:

I have lots of sheets describing different kind of expenses and gains of my small company, and I find no easy way to merge my tables like in this example I made:

我希望在更新其他表格时自动用其他表格的行填充最后一张表格,这样我可以预见费用和时间的增加(通过按日期升序自动排序绿色表格).

I want the last table to be auto filled with the lines of the others tables when I update them, so I can foresee the expenses and gain in time (by ordering the green table automatically by date ascending).

现在,我发现的唯一临时解决方案是预先将引用复制到合并表(绿色)中的其他表行(黄色和蓝色).

By now the only temp solution I found is to copy references to the other tables lines (yellow and blue) in the merging table (green) in advance.

数据透视表不允许在多个表上实现这种收集.

Pivot tables do not permit to achieve this kind of gathering on several tables.

推荐答案

在单元格I2中使用以下查询公式:

Use this Query formula in cell I2:

=QUERY({A2:C; E2:G}, "select * where Col1 is not null", 1)

要同时按日期排序,请按以下顺序添加订单:

To also order them by Date, add the order by:

=QUERY({A2:C; E2:G}, "select * where Col1 is not null order by Col1", 1)

更多推荐

合并多个表

本文发布于:2023-10-25 14:13:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1527192.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!