OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

tip: how to extract the last word or last name in a cell

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
rajaiskandarshah
General User
General User


Joined: 08 Nov 2005
Posts: 11
Location: Malaysia

PostPosted: Tue Oct 28, 2008 10:28 pm    Post subject: tip: how to extract the last word or last name in a cell Reply with quote

If you need to extract the last word or last name in a cell, you can use the following formula

=RIGHT(C1;LEN(C1)-FIND("*";SUBSTITUTE(C1;" ";"*";LEN(C1)-LEN(SUBSTITUTE(C1;" ";"")))))

i have an explanation of the formula on my blog:
http://software.krimnet.com/open-source/how-extract-last-word-or-name-a-cell-using-openofficeorg.htm

Idea
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Fri Oct 31, 2008 9:38 am    Post subject: Reply with quote

Cool Very smart. Thank you very much.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group