Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default how to selectively delete digits in a number?


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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default how to selectively delete digits in a number?

=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)

"spreadsheet monkey" wrote in
message ...

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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default how to selectively delete digits in a number?

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!

"Bob Phillips" wrote:

=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)

"spreadsheet monkey" wrote in
message ...

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?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default how to selectively delete digits in a number?

FYI: Bob's formula worked OK for me with Excel 2003.

"spreadsheet monkey" wrote:

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!

"Bob Phillips" wrote:

=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)

"spreadsheet monkey" wrote in
message ...

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?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default how to selectively delete digits in a number?

I use 2003 too.

--
---
HTH

Bob

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



"spreadsheet monkey" wrote in
message ...
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!

"Bob Phillips" wrote:

=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)

"spreadsheet monkey" wrote
in
message ...

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?








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 353
Default how to selectively delete digits in a number?

=MID(A2,3,2)&MID(A2,6,2)&RIGHT(A2,7)

"spreadsheet monkey" wrote:


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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto delete the first X digits in a cell number ? [email protected] Excel Discussion (Misc queries) 3 March 31st 07 06:18 AM
how to delete the 4 rightmost digits from a cell charlene Excel Worksheet Functions 4 June 29th 06 03:11 PM
Delete 4 to 5 digits from left in a cell Bob Phillips Excel Discussion (Misc queries) 2 April 27th 06 08:19 PM
Delete 4 to 5 digits from left in a cell Peo Sjoblom Excel Discussion (Misc queries) 3 April 27th 06 08:10 PM
Delete first two digits in column rjtees Excel Worksheet Functions 4 November 17th 05 09:22 PM


All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"