

The following formula expands a 2 x 2 size Array into a 4 x 4 size Array. The EXPAND function will expand an Array into the specified dimensions. The following formula will return the 1st, 3rd, 5th and last Rows from the range B3 F14. To extract the specified Rows from the supplied array, we can use the CHOOSEROWS function. To extract the 1st, 2nd and last columns from the range B3:F14, =CHOOSECOLS(B3:F14,1,2,-1) CHOOSEROWS To drop the first 5 rows and 1 column from the range B3:F14 =DROP(B3:F14,5,1) CHOOSECOLSĬHOOSECOLS will return the specified Columns from the supplied array. To drop the last 3 rows from the range B3:F14 =DROP(B3:F14,-4) The DROP function will drop the specified number of Rows and Columns from the supplied array.įollowing formula will drop the first 3 rows from the range B3:F14 =DROP(B3:F14,3)

TAKE function will return the specified number of Rows and Columns from the start or end of the supplied Array.įollowing formula will keep the first 3 rows from the range B3:F14 =TAKE(B3:F14,4)įor the last 3 rows from the range B3:F14 =TAKE(B3:F14,-3)įor the first 5 rows and 2 columns from the range B3:F14 =TAKE(B3:F14,5,2) DROP

Next 5 functions TAKE, DROP, CHOOSECOL, CHOOSEROW and EXPAND are designed to ‘Resize’ Arrays. Same Array reshaped into an Array 2 elements in each Row. In the following example, WRAPROWS function converts an Single Dimensional Array of 12 elements into a Two Dimensional Array, where each Row will have 4 elements. Same Array reshaped into an Array with 3 elements in each Column. In the following example, WRAPCOLS function converts an Single Dimensional Array of 12 elements into a Two Dimensional Array, where each Column has 4 elements. These functions are designed to convert a Single Dimensional Array into a Two Dimensional Array of the specified size. WRAPCOLS and WRAPROWS will do the exact opposite of TOCOL and TOROW functions. The TOROW function can arrange the elements of a 2 Dimensional Array into a ‘Single Row’. The TOCOL function can be used to arrange the elements of a 2 Dimensional Array into a ‘Single Column’. TOCOL and TOROW functions are designed to convert a 2 Dimensional Array into a Single Dimensional Array. To stack arrays horizontally, we can use the HSTACK function.įollowing formula will combine the data in the ranges B3:C6, B9:C12 and stack them vertically.
#Hstack vstack update#
If the source is formatted as an Excel Table, the output will update automatically for the addition of data. VSTACK function will stack the supplied arrays vertically.įollowing formula will combine the data in the ranges B4:F8, B11:F15, B18:F19 and stack them vertically. Next 2 Functions VSTACK and HSTACK are designed for combining and stacking Arrays. =TEXTAFTER("Christopher Edward Nolan"," ",-1) The value -1 is used to denote the last instance of the delimiter. =TEXTAFTER("Christopher Edward Nolan"," ")įollowing formula will extract the Last Name. i.e., everything after the first ‘Space’ in the supplied string. The formula given below will extract Edward Nolan, from Christopher Edward Nolan. The TEXTAFTER function will return all the characters after the specified instance of a particular character or characters. i.e., everything before the second ‘Space’, =TEXTBEFORE("Christopher Edward Nolan"," ",2) TEXTAFTER =TEXTBEFORE("Christopher Edward Nolan"," ")įollowing formula will extract the First and Middle names. i.e., everything before the first ‘Space’ in the supplied string. The following formula will extract Christopher, from Christopher Edward Nolan. The TEXTBEFORE function can extract all the characters before the specified instance of a particular character or characters. With the new TEXTSPLIT function this task has become a lot more easier and dynamic. =TEXTSPLIT("Appleinc.,Cupertino,California,UnitedStates",",")Įarlier we had to use Text to Columns feature, Power Query or a User Defined Function (UDF) to split text strings. Following is another example where ‘Comma’ is the delimiter. In the above example, ‘Space’ is the delimiter. =TEXTSPLIT("Christopher Edward Nolan"," ") See how the TEXTSPLIT function splits the given Name into First, Middle, Last Names and spills them into different cells. One of the most awaited Excel functions ever, TEXTSPLIT function will split a Text String on the basis of the specified Delimiter.
