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
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Column(s) to be Split | irng |
Input Range |
|
Specify the input data range, should be one or multiple data column(s). |
Subgroup Method | method |
Input int |
|
Choose a method to subgroup, works together with the nrows variable (i.e. N will be the value defined by nrows). Option list:
|
N | nrows |
Input int |
|
Specify the N value used in method variable. Based on the subgroup method chosen (method variable), it has different meanings. |
Reference Column | ref |
Input Column |
|
Specify the Reference Column when method variable is set to By Reference Column(ref). |
Split | split |
Input int |
|
Specify the split method when method variable is set to By Reference Column(ref). Option list:
|
Separator Value | sep |
Input string |
|
Specify the separator when split by separator. |
Rows Meet Condition | match |
Input int |
|
Specify the meet condition when split by separator. Option list:
|
Treat Consecutive Rows as One | consecutive |
Input int |
|
Specify whether to treat consecutive rows as one in meet condition. |
Interval | interval |
Input double |
|
Specify the interval value when split by interval. |
Start Value | start |
Input double |
|
Specify the start value when split by interval. |
Sort by Reference | sort |
Input int |
|
Specify whether to sort each group by value of reference column in output result when split by interval. |
Output | rd |
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.