how to selectively delete digits in a number?

S

spreadsheet monkey

I have a long list of numbers that I need to change.
the original number is:
1961-04-10-2691

I need it to be:
610410-2691

in other words, I need the first two numbers to go away and the first two
minus signs (-) to go away.

can anyone help me?
 
B

Bob Phillips

=SUBSTITUTE(SUBSTITUTE(MID(A2,3,99),"-","",1),"-","",1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
S

spreadsheet monkey

I tried this one, but it didnt work. this may be because I use excel 2003. I
have had problems with this before. sometimes it helps to substitute the (,)
with (;). although it didnt this time. I tried the other response, which
worked, so then I forgot about this one. in other words, it might work, I
just dont know how!
 
B

Bob Phillips

I use 2003 too.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top