cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
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