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

[Solved]Truncating the proceeding numbers

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


Joined: 18 Apr 2012
Posts: 6
Location: United States

PostPosted: Mon Apr 23, 2012 12:18 pm    Post subject: [Solved]Truncating the proceeding numbers Reply with quote

Can anyone tell me a simple way to truncate the proceeding numbers. For example I have a credit card number 123456789 stored in sheet1, but want to record it on sheet2 by just its last 4 digits 6789. The function TRUNC() works well if I want to change 3.14159 to 3.14 but is no use for this.

Last edited by westclean on Mon Apr 23, 2012 12:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
UmTheMuse
General User
General User


Joined: 05 Apr 2012
Posts: 33
Location: United States

PostPosted: Mon Apr 23, 2012 12:28 pm    Post subject: Reply with quote

use the RIGHT() function (no pun intended). ="*****" & RIGHT(A3,4) except you'll replace A3 with whatever your reference is.
Back to top
View user's profile Send private message
westclean
General User
General User


Joined: 18 Apr 2012
Posts: 6
Location: United States

PostPosted: Mon Apr 23, 2012 12:33 pm    Post subject: Reply with quote

Thank you, I knew there was a function for it.
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