cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
Sysy13
Level II

Match Col A data with Col B data

I would like to ask what formula I can put in Column 3 to get this kind of data?
Means if any row of Column 2 data includes data of Column 1, then the row will print out "Y" at column 3. If there's no related value in Column 2, then the row will print out "N"

1 ACCEPTED SOLUTION

Accepted Solutions
Thierry_S
Super User

Re: Match Col A data with Col B data

Hi,

Here is a simple way to get your result (see attached table)

var_r = :REFERENCE << Get Values;
If( Contains( var_r, :QUERY ),
	"YES",
	"NO"
);

It works for both Numerical and Character values.

Best,

TS

Thierry R. Sornasse

View solution in original post

2 REPLIES 2
Thierry_S
Super User

Re: Match Col A data with Col B data

Hi,

Here is a simple way to get your result (see attached table)

var_r = :REFERENCE << Get Values;
If( Contains( var_r, :QUERY ),
	"YES",
	"NO"
);

It works for both Numerical and Character values.

Best,

TS

Thierry R. Sornasse
Sysy13
Level II

Re: Match Col A data with Col B data

Thx !!! It's working

Recommended Articles