Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default FORMATING PHONE NUMBER!!

In Range("H2") is a 10-digit number. How do I format the cell to show
the number in the format ###-###-####. Example: Entering 1478942266
should convert to 147-894-2266.

Any help would be appreciated!
Jay

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default FORMATING PHONE NUMBER!!

Select Format/Cells from Excel's menu bar, select the Number tab on the
dialog box that comes up, select Custom from the Category list and then put
this into the Type field...

000-000-0000

--
Rick (MVP - Excel)


"jay dean" wrote in message
...
In Range("H2") is a 10-digit number. How do I format the cell to show
the number in the format ###-###-####. Example: Entering 1478942266
should convert to 147-894-2266.

Any help would be appreciated!
Jay

*** Sent via Developersdex http://www.developersdex.com ***


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default FORMATING PHONE NUMBER!!

Select the column or the cells. Right click--Format Cells-- Custom..Type
text box enter the below

###-###-####


If this post helps click Yes
---------------
Jacob Skaria


"jay dean" wrote:

In Range("H2") is a 10-digit number. How do I format the cell to show
the number in the format ###-###-####. Example: Entering 1478942266
should convert to 147-894-2266.

Any help would be appreciated!
Jay

*** Sent via Developersdex http://www.developersdex.com ***

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default FORMATING PHONE NUMBER!!

If you are looking for VBA use FORMAT

Msgbox Format("1234567890","###-###-####")

If this post helps click Yes
---------------
Jacob Skaria


"jay dean" wrote:

In Range("H2") is a 10-digit number. How do I format the cell to show
the number in the format ###-###-####. Example: Entering 1478942266
should convert to 147-894-2266.

Any help would be appreciated!
Jay

*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default FORMATING PHONE NUMBER!!

Thank you, Rick and Jacob Skaria !
It works !!

Jay

*** Sent via Developersdex http://www.developersdex.com ***
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
Convert number to phone number smartgal Excel Discussion (Misc queries) 2 October 16th 08 11:56 PM
Phone number not nrodADAA Excel Discussion (Misc queries) 2 September 4th 07 09:42 PM
LOOKUP a phone number? Laura Excel Worksheet Functions 6 September 8th 06 07:18 PM
Formating phone numbers in cells jloughmiller Excel Discussion (Misc queries) 2 July 19th 06 05:26 AM
Phone number Lisa Excel Discussion (Misc queries) 3 May 10th 05 10:34 PM


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

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"