Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered pmdoherty Excel Worksheet Functions 4 February 6th 09 11:23 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
how i convert "100" to "hundred"( number to text) in excel-2007 mohanraj Excel Worksheet Functions 1 May 11th 08 09:07 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
concatenating and formatting area code and phone number columns sherri Excel Worksheet Functions 4 September 1st 05 09:59 PM


All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"