Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
convert phone number
I need to add the US prefix to a list of cellphone numbers and delete the
parentheses . How do i do that in batch ? ex : i need to go from (xxx)xxx-xxxx to 1xxx-xxxx |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
convert phone number
You do something like this:
="1"&substitute(substitute(a1,"(",""),")","") Regards, Fred "andrewm" wrote in message ... I need to add the US prefix to a list of cellphone numbers and delete the parentheses . How do i do that in batch ? ex : i need to go from (xxx)xxx-xxxx to 1xxx-xxxx |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
convert phone number
Is the original data text or number (look in the formula bar to see it the
() are present in the stored value) If the original data is in text form (not a formatted number): 1) if your actually want 1xxx-xxx-xxxx (that is the general form for North America phone numbers) then, use Edit/Find&Replace to change "(" to "1" and again to change ) to "-" 2) if you really want 1xxx-xxxx (without the area code); let's assume the first one is in A1, so in B1 use =1&RIGHT(A1,8) and copy down the column. Then use Copy followed by Paste Special/Values to change the formulas to values and hence allow you to delete column A If the original data is a formatted number use ==A1+10000000000 and reformat to get 1xxx-xxx-xxxx or =MOD(A1,10000000)+10000000 to get 1xxx-xxxx and reformat. In either case use followed by Paste Special/Values to change the formulas to values and hence allow you to delete column A best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "andrewm" wrote in message ... I need to add the US prefix to a list of cellphone numbers and delete the parentheses . How do i do that in batch ? ex : i need to go from (xxx)xxx-xxxx to 1xxx-xxxx |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
convert phone number
Thank you Fred !
"Fred Smith" wrote: You do something like this: ="1"&substitute(substitute(a1,"(",""),")","") Regards, Fred "andrewm" wrote in message ... I need to add the US prefix to a list of cellphone numbers and delete the parentheses . How do i do that in batch ? ex : i need to go from (xxx)xxx-xxxx to 1xxx-xxxx |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
convert phone number
Glad to help.
Fred "andrewm" wrote in message ... Thank you Fred ! "Fred Smith" wrote: You do something like this: ="1"&substitute(substitute(a1,"(",""),")","") Regards, Fred "andrewm" wrote in message ... I need to add the US prefix to a list of cellphone numbers and delete the parentheses . How do i do that in batch ? ex : i need to go from (xxx)xxx-xxxx to 1xxx-xxxx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert number to phone number | Excel Discussion (Misc queries) | |||
Here we are with the phone numbers again. I need to convert | Excel Worksheet Functions | |||
Phone number not | Excel Discussion (Misc queries) | |||
Convert phone to *** | Excel Worksheet Functions | |||
How to convert phone area-code to state name and time zone | Excel Discussion (Misc queries) |