cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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