Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brant Nyman
 
Posts: n/a
Default Phone Number Formatting

I have phone number data that has been entered into a column as ##########
with no (###)###-#### formatting. I have used format cellsnumbercustom and
then entered (###)###-#### to change how the fields are displayed. I'm
trying to find a way to modify the base data so that the formatted brackets
and dash from the phone number appear in the data not just in the field
formatting. I tried pasting values but that didn't work. Any ideas?
  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

If your number is in G14, then:

="("&LEFT(G14,3)&")"&MID(G14,4,3)&"-"&RIGHT(G14,4)

will give you a text string as you require. You can then copy the cell with
the formula and paste it elsewhere as value to get a simple string with no
formula
--
Gary's Student


"Brant Nyman" wrote:

I have phone number data that has been entered into a column as ##########
with no (###)###-#### formatting. I have used format cellsnumbercustom and
then entered (###)###-#### to change how the fields are displayed. I'm
trying to find a way to modify the base data so that the formatted brackets
and dash from the phone number appear in the data not just in the field
formatting. I tried pasting values but that didn't work. Any ideas?

  #3   Report Post  
Brant Nyman
 
Posts: n/a
Default

Exactly what I was looking for! Thanks!

"Gary's Student" wrote:

If your number is in G14, then:

="("&LEFT(G14,3)&")"&MID(G14,4,3)&"-"&RIGHT(G14,4)

will give you a text string as you require. You can then copy the cell with
the formula and paste it elsewhere as value to get a simple string with no
formula
--
Gary's Student


"Brant Nyman" wrote:

I have phone number data that has been entered into a column as ##########
with no (###)###-#### formatting. I have used format cellsnumbercustom and
then entered (###)###-#### to change how the fields are displayed. I'm
trying to find a way to modify the base data so that the formatted brackets
and dash from the phone number appear in the data not just in the field
formatting. I tried pasting values but that didn't work. Any ideas?

  #4   Report Post  
Excel_Geek
 
Posts: n/a
Default


Say the column of your ########## numbers starts in A1. Type this
formula into B1, and copy it down to the bottom of the column:

="("&LEFT(A1,3)&")"&" "&MID(A1,4,3)&"-"&RIGHT(A1,4)

This will give you (###) ###-####. If you don't want the space, you
can remove the ...&" "& part of the formula.

If you want to get rid of the formulas, copy this new column and paste
special -- values.

Note that this will be text-formatted.


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=399052

  #5   Report Post  
Brant Nyman
 
Posts: n/a
Default

This works great too. Thanks!

"Excel_Geek" wrote:


Say the column of your ########## numbers starts in A1. Type this
formula into B1, and copy it down to the bottom of the column:

="("&LEFT(A1,3)&")"&" "&MID(A1,4,3)&"-"&RIGHT(A1,4)

This will give you (###) ###-####. If you don't want the space, you
can remove the ...&" "& part of the formula.

If you want to get rid of the formulas, copy this new column and paste
special -- values.

Note that this will be text-formatted.


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=399052




  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

=text(a1,"(###)###-####")
drag down
and edit|copy, edit|paste special|values

is another alternative.

Brant Nyman wrote:

I have phone number data that has been entered into a column as ##########
with no (###)###-#### formatting. I have used format cellsnumbercustom and
then entered (###)###-#### to change how the fields are displayed. I'm
trying to find a way to modify the base data so that the formatted brackets
and dash from the phone number appear in the data not just in the field
formatting. I tried pasting values but that didn't work. Any ideas?


--

Dave Peterson
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
Number formatting - what's going on? yhtak Excel Discussion (Misc queries) 3 July 11th 05 10:57 AM
Number Formatting Delaina Excel Worksheet Functions 3 June 9th 05 06:15 PM
Alpha Phrase To Phone Number Calculator in excel alexp Excel Discussion (Misc queries) 1 February 3rd 05 03:23 PM
Pivot Table Drill Down Number Formatting Gregg Riemer Excel Discussion (Misc queries) 1 January 4th 05 10:53 PM
Conditional Formatting (Date vs Number) [email protected] Excel Discussion (Misc queries) 7 December 20th 04 10:23 PM


All times are GMT +1. The time now is 03:15 AM.

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

About Us

"It's about Microsoft Excel"