Last 4

H

Hendrix

I have a field that is made up of 7 numbers and I want to create a new
field of just the last 4. Can someone help me with this?


ie...original field 1234567 new field 4567
 
P

Pete_UK

You can do this:

=RIGHT(A1,4)

if you are happy with text values. If you require a number, then do
this:

=--RIGHT(A1,4)

Hope this helps.

Pete
 
D

Dave Peterson

=right(a1,4)
will return text

=--right(a1,4)
will return a number

=mod(a1,10000)
will also return a number
 
H

Hendrix

You can do this:

=RIGHT(A1,4)

if you are happy with text values. If you require a number, then do
this:

=--RIGHT(A1,4)

Hope this helps.

Pete




- Show quoted text -

It worked

Thanks
 

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