cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
dn610
Level III

Extracting the Last Word

Hi - If I want to extract the last word in the Name column below, what would be the best way to so?

 

dn610_0-1675866809271.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: Extracting the Last Word

Right click on the column header you wish to get the value from and create new formula column with Last Word

jthi_0-1675869156864.png

then you can take a look at the formula if needed

jthi_1-1675869179232.png

You can also do the extraction with Recode for example

jthi_2-1675869228422.png

 

-Jarmo

View solution in original post

Jeff_Perkinson
Community Manager Community Manager

Re: Extracting the Last Word

The Word() function is perfect for this. Use "-1" to get the last word.

 

If you learn only one Formula Editor function, Word() is the one 

 

 

 

 

-Jeff

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Extracting the Last Word

Right click on the column header you wish to get the value from and create new formula column with Last Word

jthi_0-1675869156864.png

then you can take a look at the formula if needed

jthi_1-1675869179232.png

You can also do the extraction with Recode for example

jthi_2-1675869228422.png

 

-Jarmo
dn610
Level III

Re: Extracting the Last Word

Thank you!

Jeff_Perkinson
Community Manager Community Manager

Re: Extracting the Last Word

The Word() function is perfect for this. Use "-1" to get the last word.

 

If you learn only one Formula Editor function, Word() is the one 

 

 

 

 

-Jeff

Recommended Articles