ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i remove telephone number hyphens from a list in Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/53624-how-do-i-remove-telephone-number-hyphens-list-excel.html)

Mediazoo

how do i remove telephone number hyphens from a list in Excel?
 
I have a long list of telephone numbers in an Excel spreadsheet that i need
to remove the hyphons from. Do you have a quick formula for doing this?

CLR

how do i remove telephone number hyphens from a list in Excel?
 
One way is to highlight the column, then do Edit Replace put - in the
"Replace" box and leave the "replace with" box empty, then press ReplaceAll


Vaya con Dios,
Chuck, CABGx3


"Mediazoo" wrote:

I have a long list of telephone numbers in an Excel spreadsheet that i need
to remove the hyphons from. Do you have a quick formula for doing this?


Bob Phillips

how do i remove telephone number hyphens from a list in Excel?
 
=SUBSTITUTE(A1,"-","")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mediazoo" wrote in message
...
I have a long list of telephone numbers in an Excel spreadsheet that i

need
to remove the hyphons from. Do you have a quick formula for doing this?




SteveG

how do i remove telephone number hyphens from a list in Excel?
 

If the cells are formatted using the special Phone Number format

[<=9999999]###-####;(###) ###-####

and assuming there is 3 digit area code so your numbers currently look
like:

(781) 555-4444

You can change the format to:

#######

This will result in 7815554444.

If you are not using an area code 555-4444 it will result in 5554444

Just select the entire column, change the cell format and they should
all change.

Not sure how to do it if they were not formatted as the Special Phone
Number format.


Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=482002


SteveG

how do i remove telephone number hyphens from a list in Excel?
 

If not in Special Phone number format for number including area code
(781-575-5555) use:

=LEFT(J14,3)&MID(J14,5,3)&RIGHT(J14,4)

If no area code then:

+LEFT(J14,3)&RIGHT(J14,4)

J14 represents the cell with the current hyphenated phone number in
it.

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=482002



All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com