Combine two matrix one under the other

Copper Contributor

Hi,

I have two tables : [Group_A], [Group_B]. I want to put all the data of each other in one table. I want to use formulas because each table might grow over the time. The purpose is to analyse the data. Each table share the same headlines. I don't want to use VBA if possible. See the file attached or just here ; 

 

T_Group_A

GroupNameExam1Exam2Exam3

Group_A

Apple67337
Group_ABravo54233
Group_ACharlie94409

 

T_Group_B

GroupNameExam1Exam2Exam3
Group_BDelta77347
Group_BEcho86388
Group_BFoxtrot903910
Group_BGolf45235

 

 

I want this result : 

GroupNameExam1Exam2Exam3
Group_AApple67337
Group_ABravo54233
Group_ACharlie94409
Group_BDelta77347
Group_BEcho86388
Group_BFoxtrot903910
Group_BGolf45235

 

Thanks

7 Replies

@leolo7 Consider using Power Query. Query both tables and Append them into a third that you load back to Excel. Just keep on adding data to the tables, press Refresh All on the data ribbon and you're done. Demonstrated in the attached file.

 

If you are new to PQ, the link below could be a good starting point.

https://exceloffthegrid.com/power-query-introduction/ 

Chapter 8 deals with combining and appending queries.

@Riny_van_Eekelen Thanks for your fast response and solution. I'm not familiar with Power Query. The solution is probably in "Get Data..". however, I don't have this in my menu. I have the latest version of Excel for Mac (16.55), Microsoft 365. Any setting I should change?

 

Thanks!

 

I find this on Microsoft web site (for Mac) : 

fd483d21-b12d-425b-91d6-a9e0eedc5047.png

This is what I have : 

Capture d’écran, le 2021-12-02 à 10.58.08.png

 

@leolo7 Oh my! You're on a Mac. Excel for Mac doesn't support Power Query in the way I used it. Then you'll need VBA which isn't really my thing. Sorry!

Thank you very much. This explain my problem !!!

@leolo7 

If your Excel supports dynamic arrays that could be

=LET(
  rA,        ROWS(T_Result_A),
  rB,        ROWS(T_Result_B),
  clmns,     COLUMNS(T_Result_A),
  k,          SEQUENCE(rA+rB, clmns),
  i,          INT( (k-1)/clmns)+1,
  j,          MOD(k-1, 5) +1,
 IF( i <= rA, INDEX(T_Result_A, i, j),  INDEX(T_Result_B, i-rA, j) ) )
Hi,
Wow, I like that, very simple. Is it possible that the output will a dynamic array? Or can we transform this in a Dynamic array? If yes, can we define Headers?

@leolo7 

Sorry, I didn't catch. Output is the spill, aka dynamic array.