

In the below image, we have chosen four rows. If we want to insert two to three rows, select those many rows by using the “Shift + Down Arrow” key.The shortcut keyboard key is “Shift + Spacebar.” We must use the shortcut key to select the entire row instantly.We must first select the cell above which we want to insert the row.This is compatible with Excel on Windows or Mac.Below are the steps to insert rows in Excel using the Excel shortcut (Shift + Spacebar). The last cell of the list will be what you want. QA,Sekuli,Testing,Applitools,Visual Testing,Test Automation,Selenium QA,Sekuli,Testing,Applitools,Visual Testing,Test Automation QA,Sekuli,Testing,Applitools,Visual Testing For all other rows to N, the formula is =Concatenate(C1,B2). Because it is additive you will get all at the end. In column C create a formula that concatenates all previous values.For the next row to row N, the formula is =Concatenate(",",A2). For example, assuming A1 is the first row, the formula for B1 is =B1. In column B, to the right of the first cell, create a rule that uses the concatenate function on the column value and ",".A more elegant solution would be to hide this away in the JoinXL VBA function.įor Excel 2011 on Mac it's different. This usage of TRANSPOSE is a well-known way of converting 2D arrays into 1D arrays in Excel, but it looks terrible. The inner TRANSPOSE converts the 1×4 two-dimensional array into a 4×1 two-dimensional array, which the outer TRANSPOSE then converts into the expected 4-element one-dimensional array. In the above example, TRANSPOSE converts the 4×1 two-dimensional array into a 4-element one-dimensional array (this is the documented behaviour of TRANSPOSE when it is fed with a single-column two-dimensional array).įor a horizontal range, you would have to do a double TRANSPOSE: =JoinXL(TRANSPOSE(TRANSPOSE(A1:D1))) In Excel, ranges return two-dimensional arrays. Now, JoinXL accepts only one-dimensional arrays as input. The simplest form is: Function JoinXL(arr As Variant, Optional delimiter As String = " ")Įxample usage: =JoinXL(TRANSPOSE(A1:A4)," ")Įntered as an array formula (using Ctrl- Shift- Enter). VBA functions aren't exposed in Excel, so I wrap Join in a user-defined function that exposes its functionality. Use VBA's already existing Join function.
