cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
Choose Language Hide Translation Bar
View Original Published Thread

Extracting the Last Word

dn610
Level III

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