admin管理员组文章数量:1401264
I got 2+ tables and want to stack their data with filter. Each position have mark. Here PN1 and PN2. For example.
Table 1
Column A | Column B | Column C | Column D |
---|---|---|---|
PN1 | Ducts | 200x200 | 3 |
PN2 | Ducts | 300x300 | 5 |
I got 2+ tables and want to stack their data with filter. Each position have mark. Here PN1 and PN2. For example.
Table 1
Column A | Column B | Column C | Column D |
---|---|---|---|
PN1 | Ducts | 200x200 | 3 |
PN2 | Ducts | 300x300 | 5 |
Table 2
Column A | Column B | Column C | Column D |
---|---|---|---|
PN1 | TRSL | 200x200 | 1 |
PN2 | TRSL | 300x300 | 2 |
I want to achieve via VSTACK AND Filter so it can look like this
TableSUM
Column A | Column B | Column C | Column D |
---|---|---|---|
PN1 | Ducts | 200x200 | 3 |
PN1 | TRSL | 200x200 | 1 |
PN2 | Ducts | 300x300 | 5 |
PN2 | TRSL | 300x300 | 2 |
I got the first with PN1 but cant figure out PN2 so it would stack nicely.
Used
=vstack(filter(table1!A2:C6,table1!A2:A6="PN1,""),filter(table2!A2:C6,table1!A2:A6="PN1,""))
But filter can process arrays with + or OR function but it would just stack them without sequence.While i need this sequence to continue.
Just got a little bit lost.
Many thanks.
EDIT: Also. I there is no needed mark in the table it returns #N/A and take the whole row. Is there a way to fix this.
Share Improve this question edited Mar 24 at 14:51 Mayukh Bhattacharya 27.8k9 gold badges29 silver badges42 bronze badges asked Mar 24 at 13:13 Артур ДобриянАртур Добриян 233 bronze badges2 Answers
Reset to default 2Stack Two Tables and Sort by Unique Column
=LET(data,VSTACK(Table1,Table2),ucol,1,
uc,INDEX(data,,ucol),
SORTBY(data,XMATCH(uc,UNIQUE(uc))))
An approach of the task
=SORT(VSTACK(Table6,Table7),{1,2})
Table6 and Table7 are the names of the table.
It will sort also on the second column.
本文标签: How to make formula in excel circlingStack Overflow
版权声明:本文标题:How to make formula in excel circling - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744249941a2597203.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论