Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default How do I take out a dash in a number like 827-6541 in a XL list

I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I take out a dash in a number like 827-6541 in a XL list

Assuming data as posted is representative and is running in A1 down,
perhaps this might suffice:

In B1, copied down:
="1"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A 1,"-",""),"
",""),")",""),"(","")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Kelley" wrote:
I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I take out a dash in a number like 827-6541 in a XL list

The earlier suggestion as posted has an unfortunate line-break which
could trip things up.

Here's a re-post with an intentional line-break to smoothen
implementation
(Just copy direct from the post, then paste into the formula bar for
B1)

In B1, copied down:
="1"&SUBSTITUTE(SUBSTITUTE(
SUBSTITUTE(SUBSTITUTE(A1,"-","")," ",""),")",""),"(","")

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default How do I take out a dash in a number like 827-6541 in a XL list

If the phone number is in A1, use

="1"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A 1,"(",""),")",""),"-",""),"
","")

Watch out for line wrapping. The formula above should be in one line.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)




"Kelley" wrote in message
...
I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I take out a dash in a number like 827-6541 in a XL list

One way is to do a bunch of Edit|Replaces:

Replace (
with (leaveblank)

Same with ), then - and with the space character.

Kelley wrote:

I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I take out a dash in a number like 827-6541 in a XL list

Think we still need to append the leading "1" to the result after all
of the Edit | Replaces <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Dave Peterson wrote:
One way is to do a bunch of :

Replace (
with (leaveblank)

Same with ), then - and with the space character


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I take out a dash in a number like 827-6541 in a XL list

Yep, so maybe using a formula in an adjacent column--after the edit|replaces
would help.
=A1+10000000000

(or a custom format or adding 10000000000 to each cell...)


Max wrote:

Think we still need to append the leading "1" to the result after all
of the Edit | Replaces <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Dave Peterson wrote:
One way is to do a bunch of :

Replace (
with (leaveblank)

Same with ), then - and with the space character


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default How do I take out a dash in a number like 827-6541 in a XL list

Thanx All, but all this information is like a Linda Rhonstad song, "Blue
Bijou". It all blew right by me. Too..oooooo technical for me. But thanx
anyway.

"Kelley" wrote:

I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I take out a dash in a number like 827-6541 in a XL list

Kelley,
The implementation of the many options given is simpler than trying to
sing/sound like Linda Ronstadt <g. Do give all of the options a go or
2. You may be pleasantly surprised ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Kelley wrote:
Thanx All, but all this information is like a Linda Rhonstad song, "Blue
Bijou". It all blew right by me. Too..oooooo technical for me. But thanx
anyway.


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I take out a dash in a number like 827-6541 in a XL list

Another one:

="1"&MID(A1,2,3)&MID(A1,7,3)&RIGHT(A1,4)

Biff

"Kelley" wrote in message
...
I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default How do I take out a dash in a number like 827-6541 in a XL list

Would it not be as easy as highlighting the whole column of numbers and
using Ctrl + H to replace the characters you wish to delete in one
swoop?


Kelley wrote:
I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 170
Default How do I take out a dash in a number like 827-6541 in a XL lis

Now that has to be the most straight forward solution ever. Even though there
are three separate characters to delete, (,) and -, This works!

"rhhince" wrote:

Would it not be as easy as highlighting the whole column of numbers and
using Ctrl + H to replace the characters you wish to delete in one
swoop?


Kelley wrote:
I have a "list of fax #s in xl that I am tyring to send as a broadcast fax.
The service I have requires that the fax number be in a format with no
characters other than the numbers. For example, (912) 678-8344 must be
changed to 19126788344. Not characters other than numbers and no spaces.
Can anyone tell me a way to do this without reinventing the computer?



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 can I count the number of repeats in a list of data? SouthCarolina Excel Discussion (Misc queries) 7 March 7th 06 10:03 PM
Select every 10th number in a list judoist Excel Discussion (Misc queries) 4 November 24th 05 04:30 PM
Lookup in a list of number with a headline Traima Excel Discussion (Misc queries) 2 August 3rd 05 07:18 AM
Finding the 3rd largest number in a list Simon Jefford Excel Worksheet Functions 2 June 28th 05 04:01 PM
Lookup closest number in list Jeff Excel Discussion (Misc queries) 6 November 26th 04 07:27 PM


All times are GMT +1. The time now is 01:51 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"