ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   removing dashes from phone numbers (https://www.excelbanter.com/excel-discussion-misc-queries/27478-removing-dashes-phone-numbers.html)

Brad

removing dashes from phone numbers
 
i have a column of phones numbers with the format 555-111-2222 and I want to
remove the dashes so that they are 5551112222 so that I can use a vertical
lookup. What's the easiest way to do this?

Jason Morin

=SUBSTITUTE(A1,"-","")

HTH
Jason
Atlanta, GA

"Brad" wrote:

i have a column of phones numbers with the format 555-111-2222 and I want to
remove the dashes so that they are 5551112222 so that I can use a vertical
lookup. What's the easiest way to do this?


Gary's Student

You can use Edit Find to open the find/replace window.

Then find - and replace with nothing. Click Replace all
--
Gary's Student


"Brad" wrote:

i have a column of phones numbers with the format 555-111-2222 and I want to
remove the dashes so that they are 5551112222 so that I can use a vertical
lookup. What's the easiest way to do this?


Duke Carey

In addition to Jason's suggestion, you can also select all the phone #s and
do a Find & Replace, replacing the "-"s with ""s


"Brad" wrote:

i have a column of phones numbers with the format 555-111-2222 and I want to
remove the dashes so that they are 5551112222 so that I can use a vertical
lookup. What's the easiest way to do this?



All times are GMT +1. The time now is 11:31 PM.

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