

So, hopefully this explanation makes it clear what is happening in the final stages of a variable called demux which delivers the result. (NB: switch the sequence patterns and you can make a column-wise append.) In this sense, the formula above is the equivalent of APPEND( table1, table2 ) where APPEND is a row-wise append of two tables which is what we want. It is kind of like: IFERROR( INDEX( table1, Now you can exploit the errors by replacing them with the table that you want to append by wrapping the INDEX in an IFERROR. For example, if I have a 3 x 2 array of letters A through F and I reference cell 3, 3, it will throw a reference error. To combine two arrays, you put the first array into an INDEX and then reference cells that are outside of the array to force a #REF! error. The trick is like having an APPEND function like:ĪPPEND( APPEND( table1, table2 ), table3 ).

Putting multiple arrays together requires a trick and this trick has to be applied twice because, as you can see, we are bringing three tables together. Now that the easy part is done, it is time to go after the hard stuff - bringing this all together into a single dynamic array. How this works - Demultiplexing the parts into the output The output for mux will be the content of the unPivMatrix. change table name to your actual table name Note that all steps can be done directly from the UI.Format them how you want in Excel for display.The year/month will be converted to real dates equal to the first of each month.Examine the comments, and also the Applied Steps window selections, to understand what is going on.Paste the M-Code below to replace the code in that window.In the PQ UI, select Home => Advanced Editor.


With Transform Range you can quickly convert that into three rows, like so:Īnd vice versa you can convert multiple columns or rows to a single column or row.Ĭlick Kutools > Range > Transform Range. Transform or convert multiple rows to a single rowįor example, if you have a column of data as shown as following screenshot, each customer’s information takes up 3 rows from up to down as name, Telephone and address. Transform or convert multiple columns to a single column Transform or convert a row to multiple rows Transform or convert a column to multiple columns The utility Transform Range in Kutools for Excel can help you transform (convert) a vertical column into several columns and convert a row into multiple rows quickly.
