cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Community Discussions

Got a question about using the JMP User Community? A complaint or a compliment? Post it here.
Choose Language Hide Translation Bar
cchueng
Level III

Extract String which has positive and negtive numbers

Hi,

I have a table1.jmp as atteched. How do I extract the X and Y as circled in the red box? The X and Y values can sometimes be negative. For example, the XY values from the 1st row is -280,-396. The XY values from the 2nd row is 284,-228.

cchueng_0-1744749768432.png

 

2 REPLIES 2
cchueng
Level III

Re: Extract String which has positive and negtive numbers

This is a tough one. Any wise advice?

txnelson
Super User

Re: Extract String which has positive and negtive numbers

Here are the formulas that will do what you want

// For the X value
Num( Substitute( Word( 5, Substitute( :Fname, "--", "-&" ), "-" ), "&", "-" ) )

// For the Y value
Num( Substitute( Word( 6, Substitute( :Fname, "--", "-&" ), "-" ), "&", "-" ) )

txnelson_0-1768422481962.png

 

Jim