Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The x-function, wjoinbycol,  enable joining worksheets by the matched column in Origin 2015. 

Detailed Documentation: Please refer the wjoinbycol help page

How to:

  1. When a worksheet is active, open the Script Window (from menu, Window: Script Window) if it is not already open.
  2. In the Script Window, enter script below and press Enter

    Code Block
    wjoinbycol -d
Display Name
Variable Name
I/O and Type
Default Value
Description
Input Worksheetsirng

Input

Range

 

Specify the worksheets to be joined. For example, join the sheet1 in Book1 and Book2

irng:=([Book1]Sheet1!,[Book2]Sheet1!)

Matching Columnscondition

Input

string

 

Specify the matched columns in each sheet, use = as connector. For example,

condition:=[Book1]Sheet1!a=[Book2]Sheet1!b

Drop Multiplesmultiple

Input

int

0

Only include the first match found with multiple:=1

Image Removed

Drop Non-matchesunmatchInput int0

Only include the matched values with unmatch:=1

Image Removed

Match with All Combinationscombine

Input

int

1

Show all combinations when there is multiple match cells with combine:=1, like the following ID=a

Image Removed

 

Merge Matched Column as Onemerge

Input

int

1

Only keep one matched column in result with merge:=1

Image Removed

Consider Missing Valuesmissing

Input

int

0Specify to decide whether to ignore rows with missing values in the matching columns.
Outputorng

Output

Worksheet

 Specify the output worksheet

...

Join Worksheet by Matching Labels

ORG-11420

The x-function, wjoinbylabel,  enable joining worksheets by the matched label (worksheet headers)

Detailed Documentation: Please refer the wjoinbylabel help page

How to:

  1. When a worksheet is active, open the Script Window (from menu, Window: Script Window) if it is not already open.
  2. In the Script Window, enter script below and press Enter

    Code Block
    wjoinbylabel -d