ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Changing Phone number format (https://www.excelbanter.com/excel-worksheet-functions/141283-changing-phone-number-format.html)

Noncentz303

Changing Phone number format
 
I have a sheet that I would like to convert data over to. But all the phone
numbers on the sheet have this format

###+###-#### and I would like to convert it to
###-###-#### so basically I just need the + replaced with a - when the
record is entered into the table.

I know this is easy but im not familiar with at excel functions
Thanx

LT

Changing Phone number format
 
On May 2, 11:57 am, Noncentz303
wrote:
I have a sheet that I would like to convert data over to. But all the phone
numbers on the sheet have this format

###+###-#### and I would like to convert it to
###-###-#### so basically I just need the + replaced with a - when the
record is entered into the table.

I know this is easy but im not familiar with at excel functions
Thanx


Hi.

I believe what you want is below using the Replace function. The firs
part (A1) is the cell with old number with the + in it.

The "4" is to move over 4 characters to the right (416+) It will stop
at the +.

The "1" is to replace only ONE char to the right, where you choose to
start in the text string. (the 4 over)

And the "-" is what you want to replace the + with.

416+896-8229 =REPLACE(A1,4,1,"-")

Hope that helps!

-LT


CLR

Changing Phone number format
 
Highlight the column of phone numbers to be changed, then do Edit Replace
and then follow the menus........


Vaya con Dios,
Chuck, CABGx3



"Noncentz303" wrote:

I have a sheet that I would like to convert data over to. But all the phone
numbers on the sheet have this format

###+###-#### and I would like to convert it to
###-###-#### so basically I just need the + replaced with a - when the
record is entered into the table.

I know this is easy but im not familiar with at excel functions
Thanx



All times are GMT +1. The time now is 10:13 AM.

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