#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default last digit

This one is close, but does not quite work all the time. Try 12000.

"Thomas Ramel" wrote:

Grüezi choice

choice schrieb am 11.02.2005

how would i go about getting the last digit in a number. for example 5326 it
will return 6, 42 will return 2.
i think theres an equation for this too but im not sure


If you have numbers only you can do this mathematically instead of
string-operations:

=MOD(A1;10)




Regards
Thomas Ramel

--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default last digit

Returns zero for me. What do you get?

--
Regards,
Tom Ogilvy

"David" wrote in message
...
This one is close, but does not quite work all the time. Try 12000.

"Thomas Ramel" wrote:

Grüezi choice

choice schrieb am 11.02.2005

how would i go about getting the last digit in a number. for example

5326 it
will return 6, 42 will return 2.
i think theres an equation for this too but im not sure


If you have numbers only you can do this mathematically instead of
string-operations:

=MOD(A1;10)




Regards
Thomas Ramel

--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional format on first & last digit on 3 digit cell data caprey New Users to Excel 3 December 17th 08 05:24 PM
Convert 2 digit month to 4 digit years and months BB Excel Worksheet Functions 2 September 17th 06 09:33 PM
Color a single digit in a mult-digit number cell Phyllis Excel Discussion (Misc queries) 6 November 17th 05 12:46 AM
Tell users how to sort 5 digit and 9 digit zipcodes correctly aft. [email protected] New Users to Excel 1 February 18th 05 12:59 AM
When we enter a 16 digit number (credit card) the last digit chan. ceking Excel Discussion (Misc queries) 5 December 8th 04 11:45 PM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"