Restructure : Join Worksheets by Label
Join multiple worksheets by matching label row
Minimum Origin Version Required: 2015 SR0
wjoinbylabel irng:=[Book1](Sheet1,Sheet2) label:=L unmatch:=1 multiple:=1;
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 |
---|---|---|---|---|
Input Worksheets | irng |
Input Range |
|
This is used to specify the input worksheet range. The syntax is: ([BookName]SheetName!, [BookName2]SheetName2!) |
Matching Label Row | label |
Input string |
|
Specify the Label Row by using its Label Row character. Columns will be joined together according to their Label Row: including Long Name, Units, Comments etc. |
Drop Non-matches | unmatch |
Input int |
|
It specifies whether to drop columns (1=drop) with non-matches Label Row when multiple worksheets are joined into a single sheet. |
Drop Multiples | multiple |
Input int |
|
Whether to keep only one column (1=keep only one) with matched Label Row (drop others) when more than one columns in one or more source worksheets have identical matched Label Row. |
Match with All Combinations | combine |
Input int |
|
It specifies whether to show (1=show) all combinations for columns with matched Label Rows when source worksheets join into single sheet. |
Dataset Identifier | id |
Input int |
|
Specify source dataset indentifier.
0 = None, 1 = Range, 2 = Book Name, 3 = Sheet Name, 4 = Use index constructed in index to identify dadtaset source, 5 = Show sheet label of source worksheet. |
Index | index |
Input string |
|
Available when id = 4. Specify the index of the identifier.
Format is start:increment. For example, >code?1:2</code> will indentify source worksheet as 1,3,5,... |
Insert Identifier Before Data | idpos |
Input int |
|
Available when id is not 0. Specify whether to put Dataset Identifier before or after data. |
Output Worksheet | ow |
Output Worksheet |
|
Specify the output range, see syntax here. |
This X-Function is used to join multiple worksheets into a single worksheet by matching label row, according to the method specified.
You can got the Origin Help page about this tool to learn the details of the functionality of this tool.
wAppend, wjoinbycol, wjoincols
Keywords:merge, combine