Dynamic array formulas in Excel 2013

%3CLINGO-SUB%20id%3D%22lingo-sub-1740705%22%20slang%3D%22en-US%22%3EDynamic%20array%20formulas%20in%20Excel%202013%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1740705%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20sure%20how%20to%20do%20this%20best.%3C%2FP%3E%3CP%3EI%20have%202%20works%20sheets%20with%20data%20arranged%20in%20rows%20(see%20below).%3C%2FP%3E%3CP%3EI'd%20like%20to%20create%20a%26nbsp%3BDynamic%20array%20formula%20in%20a%203rd%20work%20sheet%20that%20arranges%2Fconcatenates%20all%20this%20data%20in%20columns%20per%20below.%3C%2FP%3E%3CP%3EProblem%20is%20that%20the%20range%20(n%20and%20m)%20of%20the%20data%20in%20sheet%201%20and%202%20is%20not%20always%20the%20same.%20I%20have%20a%20macro%20that%20generates%20this%20data%20in%20sheet%201%20and%202%20and%20the%20summary%20table%20in%20sheet%203%20should%20be%20smart%20enough%20to%20auto%20arrange%20the%20new%20data%20extents%20automatically.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%201%3A%3C%2FP%3E%3CP%3ERow%201%3A%20x1%20x2%20x3%20...%20xn%3C%2FP%3E%3CP%3ERow%202%3A%20y21%20y22%20y23%20...%20y2n%3C%2FP%3E%3CP%3ERow%20k%3A%20yk1%20yk2%20yk3%20...%20ykn%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%202%3A%3C%2FP%3E%3CP%3ERow%201%3A%20xn%2B1%20xn%2B2%20xn%2B3%20...%20xn%2Bm%3C%2FP%3E%3CP%3ERow%202%3A%20z21%20z22%20z23%20...%20z2m%3C%2FP%3E%3CP%3ERow%20k%3A%20zk1%20zk2%20zk3%20...%20zkm%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%203%3A%3C%2FP%3E%3CP%3Ex1%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By21%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By31%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Byk1%3C%2FP%3E%3CP%3Ex2%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By22%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By32%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Byk2%3C%2FP%3E%3CP%3E...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B...%26nbsp%3B%3C%2FP%3E%3CP%3Exn%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By2n%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3By3n%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bykn%3C%2FP%3E%3CP%3Exn%2B1%26nbsp%3B%20%26nbsp%3Bz21%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20z31%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20zk1%26nbsp%3B%3C%2FP%3E%3CP%3E...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20...%26nbsp%3B%3C%2FP%3E%3CP%3Exn%2Bm%26nbsp%3B%20z2m%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20z3m%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B....%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3Bzkm%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1740705%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1743080%22%20slang%3D%22de-DE%22%3ESubject%3A%20Dynamic%20array%20formulas%20in%20Excel%202013%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1743080%22%20slang%3D%22de-DE%22%3ESorry%2C%20but%20your%20description%20does%20not%20match%20the%20inserted%20file.%3CBR%20%2F%3EI%20am%20not%20the%20best%20example%20in%20terms%20of%20understanding%20%3A)%2C%20but%20with%20your%20permission.%3CBR%20%2F%3EI%20would%20recommend%20that%20you%20adapt%20the%20description%20and%20the%20example%20exactly%20to%20your%20project.%3CBR%20%2F%3ESo%20that%20an%20ignorant%20person%20as%20I%20can%20understand%20it.%3CBR%20%2F%3EI'm%20sure%20you%20could%20come%20to%20a%20faster%20and%20more%20tailored%20solution%20than%20has%20been%20the%20case%20up%20to%20now.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20understanding%20and%20patience%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Nikolino%20%3CBR%20%2F%3E%20I%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Not sure how to do this best.

I have 2 works sheets with data arranged in rows (see below).

I'd like to create a Dynamic array formula in a 3rd work sheet that arranges/concatenates all this data in columns per below.

Problem is that the range (n and m) of the data in sheet 1 and 2 is not always the same. I have a macro that generates this data in sheet 1 and 2 and the summary table in sheet 3 should be smart enough to auto arrange the new data extents automatically.

 

Sheet 1:

Row 1: x1 x2 x3 ... xn

Row 2: y21 y22 y23 ... y2n

Row k: yk1 yk2 yk3 ... ykn

 

Sheet 2:

Row 1: xn+1 xn+2 xn+3 ... xn+m

Row 2: z21 z22 z23 ... z2m

Row k: zk1 zk2 zk3 ... zkm

 

Sheet 3:

x1       y21           y31            ....         yk1

x2       y22           y32            ....         yk2

...          ...              ...             ....           ... 

xn       y2n           y3n           ....         ykn

xn+1   z21          z31            ....          zk1 

...           ...            ...             ....            ... 

xn+m  z2m        z3m            ....        zkm

 

3 Replies
Highlighted
Sorry, but your description does not match the inserted file.
I am not the best example in terms of understanding :), but with your permission.
I would recommend that you adapt the description and the example exactly to your project.
So that an ignorant person as I can understand it.
I'm sure you could come to a faster and more tailored solution than has been the case up to now.

Thank you for your understanding and patience

Nikolino
I know I don't know anything (Socrates)
Highlighted

@Nikolino,

Essentially to get S3, transpose the S1 and S2 data and then add it into a single table.

The data in S1 and S2 will always have the same number of row entries (Percentiles) and sorted the same way however, the problem is that the number of columns (energies) can vary in both S1 and S2.

Highlighted

@swissco67 

 

As far as I could understand you would like the S3 to adapt to the variation of the columns in S1 & S2.

This could be done with Power Query, as well as with VBA.
Maybe someone else knows a way with formulas. I am sending you one of the options - Power Query. Below is the handling.

 

Merge Spreadsheets or Smart Tables with Power Query
Requirements
The most important requirement: You have integrated the Power Query add-in into your Excel and activated it. By default it is not available in Excel 2010/13, but you can download it for free from Microsoft and then install it (
Microsoft Power Query for Excel - https://www.microsoft.com/en-US/download/details.aspx?id=39379 .

The installation will automatically activate the add-in.

This functionality is integrated from Excel 2016.

 

Power Query is an extremely powerful tool for analyzing and evaluating existing data.

The source data does not have to be in a (single) workbook, it can also be different files. The sole requirement for merging the data: The structure of the tables is always the same, which means: Every suitable column in the file to be added must contain data of the same type. The heading must also be identical if the data is to be appended. And then it can be text (as a numerical value) in one data source and a "normal" number in the other, although this is not optimal, but can be remedied afterwards.

Note / addendum: If you want to join several tables / lists together, i.e. join them together in a similar way to copy / paste (which is also required here), the headings of the columns must be identical; otherwise a new column with the corresponding values ​​is added to the generated query. This condition corresponds to the menu item Combine | Append queries. The order is not relevant, Power Query only identifies the columns based on the headings.

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)