Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenating phone number "segments"
Hello:
If you have a phone number in a cell such as 800.555.1212, what formula do you write for that cell to make it 8005551212? Thanks! childofthe1980s |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenating phone number "segments"
My personal favorite thing to to is to remove all non-numeric characters and
then use a custom number format to make the number look like a telephone number again something like (###) ###-####. That being said numeric format will not work with multiple periods. So if your heart is set on periods then you need to use the formula =LEFT(A1, 3) & "." & MID(A1,4,3) & "." & RIGHT(A1, 4) -- HTH... Jim Thomlinson "childofthe1980s" wrote: Hello: If you have a phone number in a cell such as 800.555.1212, what formula do you write for that cell to make it 8005551212? Thanks! childofthe1980s |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenating phone number "segments"
I think perhaps you want to do the opposite of this (remove the periods, not
add them) - if so that could be done by =SUBSTITUTE(A1,".","") "Jim Thomlinson" wrote: My personal favorite thing to to is to remove all non-numeric characters and then use a custom number format to make the number look like a telephone number again something like (###) ###-####. That being said numeric format will not work with multiple periods. So if your heart is set on periods then you need to use the formula =LEFT(A1, 3) & "." & MID(A1,4,3) & "." & RIGHT(A1, 4) -- HTH... Jim Thomlinson "childofthe1980s" wrote: Hello: If you have a phone number in a cell such as 800.555.1212, what formula do you write for that cell to make it 8005551212? Thanks! childofthe1980s |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenating phone number "segments"
Oops on a re-read he wants just a stright unformated number. Just do a find
and replace on the period "." and you should be ggod to go... -- HTH... Jim Thomlinson "K Dales" wrote: I think perhaps you want to do the opposite of this (remove the periods, not add them) - if so that could be done by =SUBSTITUTE(A1,".","") "Jim Thomlinson" wrote: My personal favorite thing to to is to remove all non-numeric characters and then use a custom number format to make the number look like a telephone number again something like (###) ###-####. That being said numeric format will not work with multiple periods. So if your heart is set on periods then you need to use the formula =LEFT(A1, 3) & "." & MID(A1,4,3) & "." & RIGHT(A1, 4) -- HTH... Jim Thomlinson "childofthe1980s" wrote: Hello: If you have a phone number in a cell such as 800.555.1212, what formula do you write for that cell to make it 8005551212? Thanks! childofthe1980s |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
how i convert "100" to "hundred"( number to text) in excel-2007 | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
concatenating and formatting area code and phone number columns | Excel Worksheet Functions |