A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Limit returned value to last digit



 
 
Thread Tools Display Modes
  #1  
Old September 26th, 2008, 10:25 PM posted to microsoft.public.excel.worksheet.functions
Patrick C. Simonds
external usenet poster
 
Posts: 53
Default Limit returned value to last digit

In cell A4 is a 4 digit number in cell A1 I want only the last number
  #2  
Old September 26th, 2008, 10:36 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default Limit returned value to last digit

=IF(ISNUMBER(A4),IF(LEN(A4)=4,RIGHT(A4),""),"")

--
__________________________________
HTH

Bob

"Patrick C. Simonds" wrote in message
...
In cell A4 is a 4 digit number in cell A1 I want only the last number



  #3  
Old September 26th, 2008, 10:53 PM posted to microsoft.public.excel.worksheet.functions
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Limit returned value to last digit

=RIGHT(A4,1)

"Patrick C. Simonds" wrote:

In cell A4 is a 4 digit number in cell A1 I want only the last number

  #4  
Old September 27th, 2008, 05:02 AM posted to microsoft.public.excel.worksheet.functions
ShaneDevenshire
external usenet poster
 
Posts: 2,232
Default Limit returned value to last digit

Hi,

And a little shorter:

=RIGHT(A1)

1 is the default value and you don't neet to enter it.


--
Thanks,
Shane Devenshire


"Patrick C. Simonds" wrote:

In cell A4 is a 4 digit number in cell A1 I want only the last number

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.