Formula Query

D

davids

I was wondering if there is a formula to replace the first four digits of any
given sequence of numbers ie 1234567 needs to be replaced with xxxx567.the
length of the numbers are varied ie the number could also be 12345 in which
case it needs to be replaced with xxxx5.

Thanks
 
D

David Biddulph

davids said:
I was wondering if there is a formula to replace the first four digits of
any
given sequence of numbers ie 1234567 needs to be replaced with xxxx567.the
length of the numbers are varied ie the number could also be 12345 in
which
case it needs to be replaced with xxxx5.

="xxxx"&RIGHT(A1,LEN(A1)-4)
 

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