Extracting numbers

H

Hendrix

I have a field with 9 numbers and I would like to extract the last 5.
(ie 123456789 to 56789) Is that possible?
 
P

Pete_UK

Try this:

=RIGHT(A1,5)

or, if you need it as a number:

=RIGHT(A1,5)*1

Hope this helps.

Pete
 
R

Rick Rothstein

Of course it is positive... wasn't that obvious from the example?<g>

Okay, if there could be negative numbers...

=MOD(ABS(A1),100000)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top