View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Freddy[_2_] Freddy[_2_] is offline
external usenet poster
 
Posts: 9
Default Keep last 4 characters of value

Not sure if I have understood this right but you could try this:

=LEFT(A1, LEN(A1)-4)

This will remove the last 4 characters from your cell

"ArcticWolf" wrote:

=right(a1,4) returns the last 4 digits but how do I get the text preceeding
the last 4 please?

"ArcticWolf" wrote:

Hi,

I need to remove the last 4 characters of value (b1).
I also need to remove all preceeding characters except the last 4 characters
of a value (c1)
Each value is of a different lenght.

IE

a1= 1234567890 (original value)
b1=123456
c1=7890

Thanks in advance,

AW