Restructure: Split Columns
Split column(s) into multiple columns by row index grouping
Minimum Origin Version Required:2015 SR1
1. colsplit irng:=col(A) nrows:=3;
2. colsplit irng:=col(B) method:=seq nrows:=10;
3. colsplit irng:=[Book1]Sheet1!(1,2);
Please refer to the page for additional option switches when accessing the x-function from script
Input
Range
Specify the input data range, should be one or multiple data column(s).
int
Choose a method to subgroup, works together with the nrows variable (i.e. N will be the value defined by nrows).
Option list:
Specify the N value used in method variable. Based on the subgroup method chosen (method variable), it has different meanings.
Column
Specify the Reference Column when method variable is set to By Reference Column(ref).
Specify the split method when method variable is set to By Reference Column(ref).
string
Specify the separator when split by separator.
Specify the meet condition when split by separator.
Specify whether to treat consecutive rows as one in meet condition.
double
Specify the interval value when split by interval.
Specify the start value when split by interval.
Specify whether to sort each group by value of reference column in output result when split by interval.
Output
ReportData
Specify where to output the result, see syntax here.
The concept of this X-Function is similar to wunstackcol, but the grouping is based on row indices or specified reference column.
wunstackcol