cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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